Was this helpful?
Set Script Editor Properties
You can specify properties for the Script Editor in a JSON file set by the II_W4GL_SCRIPT_EDITOR_PROPERTIES environment variable.
If you do not set the properties, the oreditor.json file is used. This file is located in the directory specified by the OR_CONFIG environment variable.
In the following example oreditor.json file, the property settings make the tab character visible in Script Editor.
{
"scripteditorproperties": {
"view.whitespace": 1,
"tabsize": 4,
"indent.size": 4,
"use.tabs": 0,
"codefontsize": 12,
"codefont": "Consolas"
}
}
The following table describes the properties (members) which you can set within the ‘scripteditorproperties’ member:
Name
JSON Type
Default
Description
“codefont”
string
“Consolas”
Font used in the Script Editor.
This should be a monospaced font (e.g. "Cascadia Code")
“codefontsize”
number
10
Initial font size used in the Script Editor.
“tabsize”
number
4
Size of a TAB character, in spaces.
“indent.size”
number
4
Size of an indentation, in spaces.
“view.whitespace”
number (0,1)
0
Defines whether to display special characters for whitespace characters TAB/space in the Script Editor.
“use.tabs”
number (0,1)
1
Defines whether to use TABs. When set to 0, any TAB character entered via a keyboard gets automatically replaced by tabsize spaces.
Last modified date: 07/17/2025