Dialog Options - Text editor
Function: The dialog contains settings for displaying and working in a text editor.
Call: TwinCAT > PLC programming environment > Text editor
Theme tab
In this tab you set the desired theme for the ST Editor interface design. (Available from Build 4026)
Theme | Color scheme for the text editor. The selected theme is displayed in the Preview window. |
Editing tab

Number of undos | Maximum number of steps for which the command Edit > Undo is available. |
Folding | Defines the structuring of the code by indentations. When you select an indentation, you can expand or collapse the indentation section using a plus or minus sign to the left of the first line of each section.
|
Word wrap |
|
Tab width | Number of characters |
Keep tabs |
|
Indent width | If you have activated Smart or Smart with code completion for the Auto Indent option, TwinCAT inserts the number of spaces at the beginning of the line. |
Auto Indent |
|
Text area tab

Highlight current line |
|
Matching brackets |
|
Line markers |
|
Wrap guide: |
|
Caret color | Color of the cursor character |
Selection color | Color of the selected text area |
Inactive | Color of a selection if the corresponding window is not active (focus is on another window). |
Folded line foreground | Color of the header line of a closed indented section in the code |
Folded line background | Header line of a closed indented section in the code is highlighted in color. |
Font | A click on the field opens the standard dialog for configuring the font. |
Margin tab

Settings for the left margin of the text editor window, which is separated by a vertical line from the input area: | |
Line numbering |
|
Foreground color | Line number color |
Background color | Margin color |
Highlight current line |
|
Show bracket scope |
If the option is enabled and the cursor is positioned before, after or in one of the keywords of a construct, the bracketing area is indicated by a square bracket in the margin. |
Focused border color | Color of the dividing line between the margin and the input area |
Unfocused border color | Color of the dividing line between the margin and input area of the currently inactive part of the window |
Mouse actions | One of the following actions can be assigned to each of the specified mouse actions or mouse button shortcuts. TwinCAT executes the actions when you execute the mouse action on the plus or minus sign before the header line of a bracketed area:
|
Monitoring tab

Settings for displaying the monitoring fields | |
Enable Inline Monitoring |
|
Monitoring foreground color | Representation of the value in the monitoring field |
Monitoring background color | Representation of the background in the monitoring field |
Flow control foreground color | Representation of the value in the monitoring fields at the flow control items |
Flow control background color | Representation of the background of the monitoring fields at the flow control positions |
Number of displayed digits | Number of decimal places in the monitoring field |
String length | Maximum length of string variable values in the monitoring field |
See also:
- PLC documentation: Programming languages and their editors