GoHighlighter
classin packageklyn.code.go
public class GoHighlighter extends Object implements SyntaxHighlighter
└ GoHighlighter
All Implemented Interfaces: SyntaxHighlighter

Syntax highlighter for Go backed by klyn.code.go.GoTokenizer.

Example
import klyn.code.go

spans = GoHighlighter().highlight("func main() { fmt.Println(\"hello\") }")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public highlight
highlight(line as String) as List<StyledSpan>
Highlights one Go source line.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml