klyn.code.highlighters.StyledSpan.StyledSpan
constructor
public StyledSpan(text as String, style as SyntaxStyle = null)
Description

Creates a styled text span.

Parameters
ParameterDescription
textSource text slice (null is normalized to "").
styleVisual style (null defaults to SyntaxStyle.base()).
Example
import klyn.code.highlighters

span = StyledSpan("42", SyntaxStyle(181, 206, 168))