SyntaxHighlighter QML Type
QML syntax highlighter component. More...
| Import Statement: | import FluentUI.impl 1.0 |
Properties
- children : list<TextCharFormat>
- textDocument : TextDocument
Signals
- void highlightBlockChanged(string text)
Methods
- void setFormat(int start, int count, TextCharFormat format)
Detailed Description
The SyntaxHighlighter type provides syntax highlighting for a text document. It accepts TextCharFormat children to define highlighting rules and applies formatting to matching text ranges.
Property Documentation
children : list<TextCharFormat>
This is the default property. The list of TextCharFormat children that define the highlighting rules to apply.
textDocument : TextDocument
The text document to which highlighting is applied.
Signal Documentation
void highlightBlockChanged(string text)
Emitted when a new block of text is about to be highlighted. Connect to this signal to apply custom highlighting logic.
Note: The corresponding handler is onHighlightBlockChanged.
Method Documentation
void setFormat(int start, int count, TextCharFormat format)
Applies the given format to a range of text starting at start with a length of count characters.