Interesting implementation! I'm using CodeMirror tokens and regexs to make numbers scrubbable and hex colors pickable: <a href="http://tributary.io/tributary/2958568/" rel="nofollow">http://tributary.io/tributary/2958568/</a><p>I've been wanting to explore the route you took more, especially for doing even more code modification. I'd like to let users click on a number and turn it into a variable, or have a special object where members are added to the global table. You can then create controls external to the code with that table and hide the code (good for presenting after you're done coding). Looking forward to checking out your code!<p>my project: <a href="http://tributary.io" rel="nofollow">http://tributary.io</a>