public highlight(line as String) as List<StyledSpan>
Highlights one C/C++ source line.
| Parameter | Description |
|---|---|
line | Source line text. |
Ordered list of StyledSpan segments whose concatenation equals line.
import klyn.code.cpp
spans = CppHighlighter().highlight("#include <vector>")