public StyledSpan(text as String, style as SyntaxStyle = null)
Creates a styled text span.
| Parameter | Description |
|---|---|
text | Source text slice (null is normalized to ""). |
style | Visual style (null defaults to SyntaxStyle.base()). |
import klyn.code.highlighters
span = StyledSpan("42", SyntaxStyle(181, 206, 168))