I think it would be worth the time it takes to implement CodeMirror [0] in the caja playground [1]. CodeMirror is a lightweight browser- based code editor with syntax highlighting support. CodeMirror even supports mixed-mode [2] html/css/js highlighting. The Google AJAX APIs playground [3] is already using CodeMirror. Thoughts?
[0] http://marijn.haverbeke.nl/codemirror/ [1] http://caja.appspot.com/ [2] http://marijn.haverbeke.nl/codemirror/mixedtest.html [3] http://code.google.com/apis/ajax/playground/
