tvl-depot/tools/cheddar
Vincent Ambo 81d9b81b06 feat(cheddar): Use syntax highlighting assets from bat
This uses Nix to inject the path to the syntax highlighting assets
that ship with the bat source code into the cheddar build at compile
time, where the Rust compiler then inserts it into the binary via
macros.

bat has a lot of custom syntax highlighting definitions that they
collected from all over the place (including for languages like Nix!)
and this makes them accessible to cheddar.

Also if you're reading this, can you just take a moment to appreciate
how incredible it is that Nix just lets us do something like this?!
2019-12-21 04:55:10 +00:00
..
src feat(cheddar): Use syntax highlighting assets from bat 2019-12-21 04:55:10 +00:00
.gitignore feat(tools/cheddar): Check in new syntax highlighting tool 2019-12-21 04:54:57 +00:00
.skip-subtree feat(tools/cheddar): Check in new syntax highlighting tool 2019-12-21 04:54:57 +00:00
Cargo.lock feat(tools/cheddar): Check in new syntax highlighting tool 2019-12-21 04:54:57 +00:00
Cargo.toml feat(tools/cheddar): Check in new syntax highlighting tool 2019-12-21 04:54:57 +00:00
default.nix feat(cheddar): Use syntax highlighting assets from bat 2019-12-21 04:55:10 +00:00
README.md feat(tools/cheddar): Check in new syntax highlighting tool 2019-12-21 04:54:57 +00:00

cheddar

Cheddar is a tiny Rust tool that uses syntect to render source code to syntax-highlighted HTML.

The name was chosen because I was eyeing a pack of cheddar-flavoured crisps while thinking about name selection.