FreeBSD: highlight

Command Description
highlight --list-langs List the languages available to use with --syntax
highlight --list-themes List the color/style themes available to use with --style
highlight --syntax html --xhtml file.txt > out.html Convert the text file to an xhtml file with header etc
highlight --fragment --syntax java file.java > out.html Convert the java text file to an xhtml file fragment.
highlight --fragment --syntax html --xhtml out.txt > output.html Convert the html text file to an xhtml file fragment.
highlight --fragment --syntax txt --xhtml out.txt > output.html Convert the text file to an xhtml file fragment.


Roger
Roger Hall
COMPUSPEC
Google
 
Web Compuspec.net
Valid XHTML 1.0!
Valid CSS!