Crate highlite

Crate highlite 

Source
Expand description

highlite — A configurable syntax-highlighting filter for terminal output.

highlite reads text from a file or standard input and highlights matching keywords or regular expressions according to a user-provided YAML configuration file.

§Features

  • Highlight fixed keywords or regular expressions
  • Per-rule and global case-insensitive matching
  • Support for preset ANSI colors and 24-bit RGB colors
  • Read from files or stdin
  • Efficient multi-pattern matching using a single compiled regex

§Example

highlite --config rules.yaml --file file.txt

cat file.txt | highlite --config rules.yaml

Modules§

arg_parser
Command-line argument parsing and configuration loading.
highlight
High-performance text highlighting engine.
rules
Types related to highlighting rules and color definitions.

Functions§

run
Executes the main program logic using the provided CLI configuration.