X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=third-party%2Fcodemirror-3.15%2Fdemo%2Frunmode.html;fp=third-party%2Fcodemirror-3.15%2Fdemo%2Frunmode.html;h=dba808ba7a66cefedac922d5804d56c89c40e4e2;hb=2b1ae67a6922ed97c96d22dc78090a8aea2c3a4d;hp=0000000000000000000000000000000000000000;hpb=47c1017ecb82f8880e56565fb0f2eb7e7baccc5b;p=unfold.git diff --git a/third-party/codemirror-3.15/demo/runmode.html b/third-party/codemirror-3.15/demo/runmode.html new file mode 100644 index 00000000..dba808ba --- /dev/null +++ b/third-party/codemirror-3.15/demo/runmode.html @@ -0,0 +1,50 @@ + + +
+ +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
).