java2html

convert source code to syntax highlighted document

Install

All systems
curl cmd.cat/java2html.sh
Debian Debian
apt-get install java2html
Ubuntu
apt-get install java2html
Arch Arch Linux
pacman -S source-highlight
image/svg+xml Kali Linux
apt-get install java2html
CentOS
yum install source-highlight
Fedora
dnf install source-highlight
Windows (WSL2)
sudo apt-get update sudo apt-get install java2html
OS X
brew install source-highlight
Raspbian
apt-get install java2html

source-highlight

convert source code to syntax highlighted document

This program, given a source file, produces a document with syntax highlighting. It supports syntax highlighting for over 100 file formats, including major programming languages, markup formats, and configuration file formats. For output, the following formats are supported: HTML, XHTML, LaTeX, Texinfo, ANSI color escape sequences, and DocBook.

java2html

Highlight Java and C++ sources for WWW presentation

java2html can highlight your source for presentation in the WWW. It can also be used as a CGI script and can detect whether the client browser supports compressed data to save bandwidth.