JsonHighlighter
classin packageklyn.code.json
public class JsonHighlighter extends Object implements SyntaxHighlighter
└ JsonHighlighter
All Implemented Interfaces: SyntaxHighlighter

Syntax highlighter for JSON and JSONC backed by klyn.code.json.JsonTokenizer.

Example
import klyn.code.json

spans = JsonHighlighter().highlight("{\"enabled\": true, \"port\": 8080}")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public highlight
highlight(line as String) as List<StyledSpan>
Highlights one JSON source line.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml