Okay, reading that over, I feel I should actually market this more.
So:
* CodeMirror 2 deals with huge documents without trouble,
because it
only puts the visible content in the DOM tree.
* Highlighting is now much, much faster because it doesn't directly
manipulate the DOM, and because the parser API is much less indirect.
* There is now an API for highlighting arbitrary pieces of text. The
highlighted text will deal well with being edited.
* There is also support for marking lines by putting stuff in the
line-number gutter.
* CodeMirror 2 support tabs. Supports them pretty well.
* The new API is much cleaner than the old one.
* The code is only 30k when put through UglifyJS. Take that, ACE.
Partager