public highlight(line as String) as List<StyledSpan>
Tokenizes and styles a single line of source text.
| Parameter | Description |
|---|---|
line | Source line text. |
Ordered list of StyledSpan segments covering line.
import klyn.code.highlighters
spans = PlainHighlighter().highlight("plain text")