SyntaxHighlighter
interfacein packageklyn.code.highlighters
public interface SyntaxHighlighter
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.

Example
import klyn.code.highlighters

h as SyntaxHighlighter = PlainHighlighter()
spans = h.highlight("hello")
Methods
Modifier and Type Member Description
public highlight
highlight(line as String) as List<StyledSpan>
Tokenizes and styles a single line of source text.