mirror of https://github.com/status-im/codimd.git
Updated editor default theme and some other options
This commit is contained in:
parent
8de5404bb1
commit
93b6288958
|
@ -206,10 +206,11 @@ var editor = CodeMirror.fromTextArea(textit, {
|
||||||
lineNumbers: true,
|
lineNumbers: true,
|
||||||
lineWrapping: true,
|
lineWrapping: true,
|
||||||
showCursorWhenSelecting: true,
|
showCursorWhenSelecting: true,
|
||||||
|
highlightSelectionMatches: true,
|
||||||
indentUnit: 4,
|
indentUnit: 4,
|
||||||
indentWithTabs: true,
|
indentWithTabs: true,
|
||||||
continueComments: "Enter",
|
continueComments: "Enter",
|
||||||
theme: "monokai",
|
theme: "one-dark",
|
||||||
inputStyle: "textarea",
|
inputStyle: "textarea",
|
||||||
matchBrackets: true,
|
matchBrackets: true,
|
||||||
autoCloseBrackets: true,
|
autoCloseBrackets: true,
|
||||||
|
@ -220,6 +221,8 @@ var editor = CodeMirror.fromTextArea(textit, {
|
||||||
foldGutter: true,
|
foldGutter: true,
|
||||||
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
|
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
|
||||||
extraKeys: defaultExtraKeys,
|
extraKeys: defaultExtraKeys,
|
||||||
|
flattenSpans: true,
|
||||||
|
addModeClass: true,
|
||||||
readOnly: true
|
readOnly: true
|
||||||
});
|
});
|
||||||
var inlineAttach = inlineAttachment.editors.codemirror4.attach(editor);
|
var inlineAttach = inlineAttachment.editors.codemirror4.attach(editor);
|
||||||
|
|
Loading…
Reference in New Issue