Skip to content

Commit 93b6288

Browse files
committed
Updated editor default theme and some other options
1 parent 8de5404 commit 93b6288

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

public/js/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,11 @@ var editor = CodeMirror.fromTextArea(textit, {
206206
lineNumbers: true,
207207
lineWrapping: true,
208208
showCursorWhenSelecting: true,
209+
highlightSelectionMatches: true,
209210
indentUnit: 4,
210211
indentWithTabs: true,
211212
continueComments: "Enter",
212-
theme: "monokai",
213+
theme: "one-dark",
213214
inputStyle: "textarea",
214215
matchBrackets: true,
215216
autoCloseBrackets: true,
@@ -220,6 +221,8 @@ var editor = CodeMirror.fromTextArea(textit, {
220221
foldGutter: true,
221222
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
222223
extraKeys: defaultExtraKeys,
224+
flattenSpans: true,
225+
addModeClass: true,
223226
readOnly: true
224227
});
225228
var inlineAttach = inlineAttachment.editors.codemirror4.attach(editor);

0 commit comments

Comments
 (0)