diff options
author | Wu Cheng-Han | 2015-09-25 19:02:51 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2015-09-25 19:02:51 +0800 |
commit | 93b6288958bc9627d5bd53e0386ff86ad8f613ac (patch) | |
tree | 4d72ef64eeba5f44ad2b75c31b0239f7a3524ee1 /public | |
parent | 8de5404bb17e128207976ca95056d4fb3e96164b (diff) |
Updated editor default theme and some other options
Diffstat (limited to '')
-rw-r--r-- | public/js/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js index 40e5c5df..8e1bd41d 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -206,10 +206,11 @@ var editor = CodeMirror.fromTextArea(textit, { lineNumbers: true, lineWrapping: true, showCursorWhenSelecting: true, + highlightSelectionMatches: true, indentUnit: 4, indentWithTabs: true, continueComments: "Enter", - theme: "monokai", + theme: "one-dark", inputStyle: "textarea", matchBrackets: true, autoCloseBrackets: true, @@ -220,6 +221,8 @@ var editor = CodeMirror.fromTextArea(textit, { foldGutter: true, gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"], extraKeys: defaultExtraKeys, + flattenSpans: true, + addModeClass: true, readOnly: true }); var inlineAttach = inlineAttachment.editors.codemirror4.attach(editor); |