Add smartIndent to codemirror (#3810)

* add smartIndent config to codemirror

* add indentWithTabs config to codemirror

* make default tabSize same value as indentUnit

* make tab and enter do smart indentation
wikitext-via-macros
Simon Huber 2019-03-02 14:46:10 +01:00 zatwierdzone przez Jeremy Ruston
rodzic a6875df7ef
commit 41e338dc41
4 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -11,5 +11,7 @@ type: json
"Alt-T": "transposeChars",
"Alt-U": "undoSelection",
"Shift-Alt-U": "redoSelection",
"Cmd-U": ""
"Cmd-U": "",
"Tab": "indentAuto()",
"Enter": "newLineAndIndent()"
}

Wyświetl plik

@ -0,0 +1,3 @@
title: $:/config/codemirror/indentWithTabs
type: bool
text: true

Wyświetl plik

@ -0,0 +1,3 @@
title: $:/config/codemirror/smartIndent
type: bool
text: true

Wyświetl plik

@ -1,3 +1,3 @@
title: $:/config/codemirror/tabSize
type: integer
text: 4
text: 2