nenscript
converts text to Postscript, HTML or RTF with syntax highlighting
Install
- All systems
-
curl cmd.cat/nenscript.sh
- Debian
-
apt-get install enscript
- Ubuntu
-
apt-get install enscript
- Arch Linux
-
pacman -S enscript
- Kali Linux
-
apt-get install enscript
- CentOS
-
yum install enscript
- Fedora
-
dnf install enscript
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install enscript
- OS X
-
brew install enscript
- Raspbian
-
apt-get install enscript
- Dockerfile
- dockerfile.run/nenscript
enscript
converts text to Postscript, HTML or RTF with syntax highlighting
GNU Enscript takes ASCII files (often source code) and converts them to PostScript, HTML or RTF. It can store generated output to a file or send it directly to the printer. It is often used for its syntax highlighting, as it comes with rules for a wide range of programming languages. New rules can be added using an awk-like stateful scripting language.