Updated editor default theme and some other options

This commit is contained in:
Wu Cheng-Han 2015-09-25 19:02:51 +08:00
parent 8de5404bb1
commit 93b6288958

View file

@ -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);