CodeMirrorUI is a simple interface written by Jeremy Green to act as a wrapper around the CodeMirror text editor widget by Marijn Haverbeke. CodeMirror is a syntax highlighter and formatter that makes it much easier to edit source code in a browser. CodeMirrorUI is a wrapper that adds interface functionality for many functions that are already built into CodeMirror itself. Functionality includes undo, redo, jump to line, reindent selection, and reindent entire document. Two options for find/replace are also available. It is based on the MirrorFrame example that Marijn included with CodeMirror.
It's easy to configure an editor with something like this:
You'll probably need to adjust the paths to fit your situation.
Please see index.html for examples and many additional details.
Thanks to Marijn Haverbeke for creating and releasing CodeMirror in the first place.
Without his excellent contribution to the community this project would have no reason to exist.
Thanks to Mark James of famfamfam.com for his Silk Icons.
CodeMirror UI is provided under the MIT License. See the LICENSE file for full details.