lgrind

A pretty printer for various programming languages

Install

All systems
curl cmd.cat/lgrind.sh
Ubuntu
apt-get install lgrind
image/svg+xml Kali Linux
apt-get install lgrind
Windows (WSL2)
sudo apt-get update sudo apt-get install lgrind

lgrind

A pretty printer for various programming languages

LGrind is a pretty printer for a large number of programming languages using LaTeX. It is in the form of a separate preprocessor. The licence is non-free, as it contains a no-sale clause. You might consider using the listings package instead, which is free; it also claims to be able to read the language definitions of LGrind. LGrind's output tends to be prettier, though, especially if you prefer non-monospaced fonts.