/syntect-cli

Minimal CLI for syntect designed for embedding into other projects

Primary LanguageRustMIT LicenseMIT

syntect-cli

Minimal CLI for syntect designed for embedding syntect syntax highlighting into other projects

Usage

syntect-cli accepts STDIN input with code and writes the result to STDOUT

syntect-cli --lang <lang> --theme <theme>

Example

cat src/main.rs | syntect-cli --lang rust --theme base16-ocean.dark > index.html

Build

  1. Get Rust
  2. Clone the repository
  3. Run cargo build --release