TextEditorOptions
The TextEditor has an Options property of type TextEditorOptions that controls behavior.
Common Options
| Property | Description |
|---|---|
ShowLineNumbers |
(On TextEditor) Toggles the line number margin. |
WordWrap |
(On TextEditor) Toggles word wrapping. |
ShowSpaces |
Visualizes space characters. |
ShowTabs |
Visualizes tab characters. |
ShowEndOfLine |
Visualizes \n or \r\n. |
ShowBoxForControlCharacters |
Shows a box for non-printable characters. |
EnableHyperlinks |
Detects URLs and makes them clickable. |
EnableTextDragDrop |
Allows dragging text selections. |
HighlightCurrentLine |
Highlights the background of the line containing the caret. |
IndentationSize |
Number of spaces for one indentation level. |
ConvertTabsToSpaces |
Insert spaces when Tab is pressed. |
Example
editor.Options.ShowSpaces = true;
editor.Options.HighlightCurrentLine = true;
editor.Options.EnableHyperlinks = false;