This is a great component for creating editors and parse the content by programming languages and not only that.
The last version can be found at the GitHub project.
Another step in using this tool is the next generation of the CodeMirror in-browser editor, see the codemirror.next.
If you want to use it with Google’s style guides then you can test it with this GitHub google modes project.
The development team tells us about CodeMirror on the official web page:
CodeMirror is a code-editor component that can be embedded in Web pages. The core library provides only the editor component, no accompanying buttons, auto-completion, or other IDE functionality. It does provide a rich API on top of which such functionality can be straightforwardly implemented. See the addons included in the distribution, and the list of externally hosted addons, for reusable implementations of extra features.
I created this simple example to show it on CodePen online tool.

See the Pen
codemirror_editor_001
by Cătălin George Feștilă (@catafest)
on CodePen.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.