code2html

Syntax highlighter

Install

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

code2html

Syntax highlighter

Code2html is a perl script which converts a program source code to syntax highlighted HTML, or any other target for which rules are defined. It may be used as a simple console program, converting a single source code file to a single output file, it can patch HTML files including special command sequences to insert syntax highlighted snippets of code, or it can be used as a CGI script.