layout {
row {
ControlStdCodeEditor(
"mode: 'text/html', lineNumbers: false") myeditor {
...
}
}
}
The following arguments are supported:
mode (string)
:
Defines the mode, i.e. the language support, for the editor. The following modes are supported:
indentUnit (integer)
:
Defines the indentation unit for the editor.
The default value is 2.smartIndent (boolean)
:
Defines whether the editor uses smart indentation i.e. on pressing the <Enter> key.
The default value is true.tabSize (integer)
:
Defines the tab size i.e. the number of characters when pressing the <Tab> key.
The default value is 2.indentWithTabs (boolean)
:
Defines whether the editor uses tabs for indentation.
The default value is false.lineWrapping (boolean)
:
Defines whether the editor should wrap lines.
The default value is false.lineNumbers (boolean)
:
Defines whether the editor should show line numbers.
The default value is true.firstLineNumber (integer)
:
If specified (and together with lineNumbers) this setting defines the number of the first line in the
editor.
If a Fabasoft app.ducx Expression is used with the editor and the code contains a %%LINE directive, this
number is used to determine the number of the first line automatically.
To leverage this automatic determination, the argument firstLineNumber must not be used.showCursorWhenSelecting (boolean)
:
Defines whether the editor shows a cursor when selecting text.
The default value is false.matchTags (boolean)
:
Defines whether the editor highlights matching tags during editing.
The default value is true with HTML or XML files.matchBrackets (boolean)
:
Defines whether the editor highlights matching brackets during editing.
The default value is true.autoCloseTags (boolean)
:
Defines whether the editor automatically closes HTML or XML tags during editing.
The default value is true with HTML or XML files.autoCloseBrackets (boolean)
:
Defines whether the editor automatically inserts closing brackets during editing.
The default value is true.scrollbarStyle (string)
:
Defines the style for the scroll bars of the editor.
The default value is "simple".extraKeys (JSON object)
:
Defines the keyboard shortcuts of the editor.
The following default assignments are used:
FSCCODEEDITOR@1.1001:ControlStdCodeEditor()
Additional Information