public interface SyntaxHighlighter
Line-based syntax highlighter contract.
Implementations partition a source line into an ordered list of StyledSpan segments whose concatenated text equals the original line.
import klyn.code.highlighters
h as SyntaxHighlighter = PlainHighlighter()
spans = h.highlight("hello")| Modifier and Type | Member | Description |
|---|---|---|
| public | highlighthighlight(line as String) as List<StyledSpan> |
Tokenizes and styles a single line of source text. |