Running a CodeMirror mode outside of the editor.
The CodeMirror.runMode function, defined
in lib/runmode.js takes the following arguments:
text (string)mode (mode spec)output (function or DOM node)null for unstyled tokens). If it is a DOM node,
the tokens will be converted to span elements as in
an editor, and inserted into the node
(through innerHTML).