Thread:Mathmagician/@comment-3562424-20130324032918

I decided to mess around with a little experiment that I call Scope terminal. It's over at https://github.com/Kangaroopower/Scope/blob/master/terminal.js but before you click on the link let me give you an overview. It's a blank textbox that you enter stuff into and you click enter to do replaces. For example, if you want to replace "a" with "b" you'd input:

you need to input literal regex, you can't just input text btw. However, what if you need to have something escaped. Well then put #Sanitize (case doesn't matter) and then the text- eg:

But what if you want to replace #sanitize itself? Then do

It's still got some bugs, especially with providing feedback- some stackoverflow junk that doesn't show up when I do step by step testing in console :P. Either way, I'd be pretty happy if you could take it for a spin. It's not supposed to be used with regular Scope (but I think it can be, it'll just be confusing because their editbuttons are the same) and is by no means supposed to replace it as there's no shadow and it assumes (to some degree) that you know what you're doing. However it does factor in several scenarios where things could go wrong, and compensates for them. (Oh and you can use this in source mode even if you have the RTE enabled in prefs).

Best. 