public highlight(line as String) as List<StyledSpan>
Highlights one Klyn source line without changing its text.
| Parameter | Description |
|---|---|
line | Source line to tokenize. |
Ordered styled spans whose concatenation equals line.
import klyn.code.klyn
spans = KlynHighlighter().highlight("value = '😀'")