JavaHighlighter
classin packageklyn.code.java
public class JavaHighlighter extends Object implements SyntaxHighlighter
└ JavaHighlighter
All Implemented Interfaces: SyntaxHighlighter

Syntax highlighter for Java backed by klyn.code.java.JavaTokenizer.

Example
import klyn.code.java

spans = JavaHighlighter().highlight("List<String> names = List.of(\"Klyn\");")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public highlight
highlight(line as String) as List<StyledSpan>
Highlights one Java source line.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml