13 lines
422 B
JavaScript
13 lines
422 B
JavaScript
|
window.onload = function() {
|
||
|
window.editor = CodeMirror.fromTextArea(code, {
|
||
|
mode: "htmlmixed",
|
||
|
lineNumbers: true,
|
||
|
lineWrapping: false,
|
||
|
theme: 'dracula',
|
||
|
autoCloseTags: true,
|
||
|
foldGutter: {
|
||
|
rangeFinder: new CodeMirror.fold.combine(CodeMirror.fold.brace, CodeMirror.fold.comment)
|
||
|
},
|
||
|
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
|
||
|
});
|
||
|
};
|