mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Updated editor default theme and some other options
This commit is contained in:
parent
8de5404bb1
commit
93b6288958
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue