CssHighlighter
classin packageklyn.code.css
public class CssHighlighter extends Object implements SyntaxHighlighter
└ CssHighlighter
All Implemented Interfaces: SyntaxHighlighter

Syntax highlighter for CSS backed by klyn.code.css.CssTokenizer.

Example
import klyn.code.css

spans = CssHighlighter().highlight(".card { display: grid; gap: 1rem; }")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public highlight
highlight(line as String) as List<StyledSpan>
Highlights one CSS source line.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml