highlight
Outputs syntax-highlighted source code to a variety of formats. More information: <http://www.andre-simon.de/doku/highlight/highlight.php>.
Install
- All systems
-
curl cmd.cat/highlight.sh
- Debian
-
apt-get install highlight - Ubuntu
-
apt-get install highlight -
Alpine
-
apk add highlight - Arch Linux
-
pacman -S highlight - Kali Linux
-
apt-get install highlight - CentOS
-
yum install highlight - Fedora
-
dnf install highlight - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install highlight - OS X
-
brew install highlight - Raspbian
-
apt-get install highlight - Docker
-
docker run cmd.cat/highlight highlightpowered by Commando
Outputs syntax-highlighted source code to a variety of formats. More information: <http://www.andre-simon.de/doku/highlight/highlight.php>.
-
Produce a complete HTML document from a source code file:
highlight --out-format=html --style theme_name --syntax language path/to/source_code -
Produce an HTML fragment, suitable for inclusion in a larger document:
highlight --out-format=html --fragment --syntax language source_file -
Inline the CSS styling in every tag:
highlight --out-format=html --inline-css --syntax language source_file -
List all supported languages, themes, or plugins:
highlight --list-scripts langs|themes|plugins -
Print a CSS stylesheet for a theme:
highlight --out-format=html --print-style --style theme_name --syntax language] --stdout
© tl;dr; authors and contributors