Class SystemHighlighter

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

public class SystemHighlighter extends DefaultHighlighter
Highlighter implementation that provides syntax highlighting for commands and languages.

SystemHighlighter extends DefaultHighlighter to provide syntax highlighting for:

  • Command syntax (command names, options, arguments)
  • Programming language syntax (for various languages)
  • File content based on file extensions

The highlighter uses nanorc syntax definitions for highlighting, making it compatible with existing nanorc configuration files. It can be customized with different styles and supports dynamic refreshing of highlighting rules.