01mf02 / codesnake

Pretty printer for non-overlapping code spans
MIT License
8 stars 0 forks source link

codesnake

codesnake is a Rust crate that shows code blocks and labels parts of it. Its name comes from the snake-like appearance of the lines that connect code spans with their corresponding labels. šŸ An example of its output:

Example output

Features

While this crate does not support colored output out of the box, it is very easy to integrate it with other crates like yansi to produce colored output for the terminal (ANSI) and web (HTML).

Related crates