mishushakov / syntect-cli

Minimal CLI for syntect designed for embedding into other projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Minimal CLI for syntect designed for embedding into other projects

License:MIT License


Languages

Language:Rust 100.0%