Class SyntaxHighlighter

java.lang.Object
org.jline.builtins.SyntaxHighlighter

public class SyntaxHighlighter extends Object
Java implementation of a syntax highlighter based on nanorc format.

This class provides syntax highlighting capabilities for JLine applications, using configuration files in a format similar to GNU nano's nanorc files. It supports:

  • Regular expression based highlighting rules
  • Theme-based styling
  • File type detection
  • Inclusion of other configuration files

The highlighter can be used to add syntax coloring to various text displays in terminal applications, such as file viewers, editors, and REPLs.

Author:
Matti Rinta-Nikkola