public interface SyntaxHighlighter

Known subtypesTokenizer

A pluggable incremental syntax highlighter for CodeEditor. Implementations tokenize one line at a time and return an opaque integer state that is passed to the next line. Implementations should be stateless and thread-safe because one registered instance may serve multiple editors.

Methods

public abstract SyntaxHighlightResult tokenize(String line, int startState)Highlights a line, using startState from the preceding line.

Method details

tokenize

public abstract SyntaxHighlightResult tokenize(String line, int startState)
Highlights a line, using startState from the preceding line.