Minimal CLI for syntect designed for embedding syntect syntax highlighting into other projects
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
- Get Rust
- Clone the repository
- Run
cargo build --release