* Coloured output in HTML, XHTML, RTF, TeX, LaTeX, SVG, BBCode and XML format
* Supports 150+ programming languages
* Includes 40 colour themes
* Recognizes nested languages
* CLI, GUI and Lib builds available
* Platform independent
Installation:
OpenSuSe user can install Highlight using "1-click" installer - here
Using Highlight:
The following commands write the content of hello.c to hello.html:
highlight -o hello.html -i hello.cApart from hello.html, a file highlight.css is generated in the current working directory.
highlight -o hello.html hello.c
highlight -o hello.html --syntax c < hello.c
highlight --syntax c < hello.c > hello.html
Following command converts all *.cpp files in the current directory and its subdirectories to xhtml files, and stores the output in /home/you/html_code.
highlight -X --batch-recursive '*.cpp' --outdir /home/you/html_code/Following command converts all *.cpp files in the current directory and its sub- directories to xhtml files, and stores the output in /home/you/html_code.
highlight -L * --outdir /home/you/latex_code/You can generate a style file without parsing any source code.
highlight --fragment --style-outfile hilite.cssFollowing command prints only the CSS information to stdout (style: Seashell).
highlight -c stdout -S seashell
0 comments:
Post a Comment