JsHighlighter
classin packageklyn.code.javascript
public class JsHighlighter extends Object implements SyntaxHighlighter
└ JsHighlighter
All Implemented Interfaces: SyntaxHighlighter

Syntax highlighter for JavaScript and TypeScript backed by klyn.code.javascript.JsTsTokenizer.

Example
import klyn.code.javascript

spans = JsHighlighter().highlight("const items: ReadonlyArray<string> = [];")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public highlight
highlight(line as String) as List<StyledSpan>
Highlights one JavaScript/TypeScript source line.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml