# Interface SyntaxHighlighter

All Known Implementing Classes:
  `Tokenizer`

public interface SyntaxHighlighter
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.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `SyntaxHighlightResult`
  `tokenize(String line, int startState)`
  Highlights a line, using `startState` from the preceding line.

- ## Method Details

  - ### tokenize

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