nixpkgs / enscript - GNU Enscript converts ASCII files to PostScript, HTML, or RTF and stores generated output to a file or sends it directly to the printer. It includes features for `pretty-printing' (language-sensitive code highlighting) in several programming languages. Enscript can be easily extended to handle different output media and it has many options that can be used to customize printouts.
Homepage - https://www.gnu.org/software/enscript/
License - GPL-3.0-or-later