Class DefaultHighlighter

java.lang.Object
org.jline.reader.impl.DefaultHighlighter
All Implemented Interfaces:
Highlighter

public class DefaultHighlighter extends Object implements Highlighter
Default implementation of the Highlighter interface.

This highlighter provides basic syntax highlighting capabilities for the LineReader, including:

  • Highlighting of search matches
  • Highlighting of errors based on patterns or indices
  • Highlighting of selected regions

The highlighting is applied using AttributedStyle to change the appearance of text in the terminal, such as colors, bold, underline, etc.

Applications can customize the highlighting behavior by extending this class and overriding the highlight(LineReader, String) method.

See Also: