A syntax highlighter written in Rust. Pronounced like "rito" in burrito or Dorito.
- Supports multiple languages
- Supports inline code highlighting
- Supports line numbers
- Supports diff highlighting
- Supports custom themes
- Supports custom styles
$ rito --help
Rito Syntax HighlighterPassing a file as input and printing to stdout:
$ rito --language=rust --input=src/main.rsPassing a string as input and printing to stdout:
$ rito --language=rust --code='fn main() { println!("Hello, world!"); }' --fullPassing a file as input and saving to a file:
$ rito --language=rust --input=src/main.rs --output=output.html --fullPassing a string as input and saving to a file:
$ rito --language rust --code "fn main() { println!(\"Hello, world!\"); }" --output highlighted.html --fullReading from stdin:
echo "console.log('Hello, world!');" | rito --language javascript --full