public class KlynHighlighter extends Object implements SyntaxHighlighter:
Syntax highlighter for the complete Klyn lexical surface.
The scanner mirrors the language tokenizer for comments, string prefixes, triple strings, Char and CodeUnit literals, regular expressions, numeric suffixes, annotations and word operators. Query keywords are contextual and are enabled by the owning editor only while rendering a KQL block.
highlighter = KlynHighlighter()
spans = highlighter.highlight("unit as CodeUnit = `K`")| Modifier and Type | Member | Description |
|---|---|---|
| public | queryModequeryMode as Boolean = false |
Enables contextual KQL keywords for the current line. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | KlynHighlighter | Creates a highlighter initialized with the syntax supported by Klyn. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | highlighthighlight(line as String) as List<StyledSpan>: |
Highlights one Klyn source line without changing its text. |