-
Improvement
-
Resolution: Unresolved
-
Major
-
4.3.0
-
None
-
None
Currently, when we write a script into the ScriptTool, the automatic indentation is set to 2 spaces, but we always use 4 spaces. I think this problem is already in other code editors of Ametys (using Ametys.form.field.Code).
On the CodeMirror component, it seems there are options for this :
indentUnit: 2, indentWithTabs: false, smartIndent: true, tabSize: 4,\
Also, the tab key create a tab character but not spaces, maybe we can force it to spaces ? (But if we have 4 spaces for default indentation, perhaps it's useless)
insertTab: function(cm {cm.replaceSelection("\t", "end");},
- Est référencé par
-
RUNTIME-3265 Upgrade CodeMirror version
- Closed
- Fait partie de
-
RUNTIME-1999 upgrade codemiror
- Closed