.TH highlight 1 "2010-03-29" "Andre Simon" "user documentation" .SH NAME Highlight - a universal sourcecode to formatted text converter .SH SYNOPSIS .B highlight [OPTIONS]... [FILES]... .SH DESCRIPTION .B Highlight converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX, XML, BBCode, SVG, XTERM or ANSI escape sequences. There are 40 colour themes available. .B Highlight recognizes keywords, numbers, strings, comments, symbols and preprocessor directives. It supports ABAP/4, Abstract, Action Script, ADA95, Agda, AMPL, AMTrix, Apache Config, AppleScript, Applied Type System, Arc, ARM, ASCEND, ASP, Assembler, AutoIt, Avenue, Bash, BibTeX, Bison, Blitz Basic, BM Script, C#, C and C++, ClearBasic, Clipper, Clips, Clojure, COBOL, ColdFusion MX, CSS, D, Diff, DOS Batch, Dylan, Eiffel, Erlang, Euphoria, Express, FAME, Felix, Fortran 77, Fortran 90, Frink, (G)AWK, Graphviz, Haskell, Haskell LHS, Hecl, Icon, IDL, Informix, INI, Interactive Data Language, IO, Jasmin, Java, Javascript, JSP, LDAP, Lilypond, Linden Script, Lisp, Logtalk, Lotos, Lotus, Lua, Luban, Make, Maple, Matlab, MaxScript, Maya, Mercury, Microsoft PowerShell, Miranda, Modelica, Modula3, MSSQL, Nasal, Nemerle, Nice, NSIS, Oberon, Objective C, Objective Caml, Object Script, Octave, Open Object Rexx, Oz, Paradox, Pascal, PATROL, Perl, PHP, Pike, PL/1, PL/SQL, PostScript, POV-Ray, PowerPC Assembler, Progress, Prolog, Pyrex, Python, Python, QMake Project, Qore, Qu, R, Rebol, Relax NG, Rexx, RPM Spec, Ruby, SAS, Scala, Scilab, SMALL, Smalltalk, SNMP, SNOBOL, SPIN SQL, Squirrel, Standard ML, SuperX++, Sybase SQL, Tcl/Tk, TCSH, TeX and LaTeX, TTCN3, Vala, Verilog, VHDL, Visual Basic, XML, Zonnon. .PP It's easily possible to enhance highlight's database of programming languages and colour themes. See the README file for details. .SH General options .IP "-B, --batch-recursive=" convert all files matching the wildcard (uses recursive search) .IP "-D, --data-dir=" set path to highlight data directory .IP "-E, --add-data-dir=" set path to an additional data directory, which is searched first .IP "--add-config-dir=" set path to an additional configuration directory .IP "-h, --help" print this help .IP "-i, --input=" name of input file .IP "-o, --output=" name of output file .IP "-O, --outdir=" name of output directory .IP "-P, --progress" print progress bar in batch mode .IP "-S, --syntax=" set type of source code, necessary if input filename is unknown .IP "-v, --verbose" print debug info to stderr .IP "-p, --list-langs" list installed language definitions .IP "-q, --quiet" supress progress info in batch mode .IP "-w, --list-themes" list installed themes .IP "--force" generate output if language type is unknown .IP "--print-config" print path configuration .IP "print-style" print only style (see --style-outfile) .IP "--skip=" ignore listed unknown file types (Example: --skip='bak;c~;h~') .IP "--start-nested=" define nested language which starts input without opening delimiter .IP "--validate-input" test if input is a valid text file .IP "--version" print version and copyright info .SH Output formats .IP "-H, --html" generate HTML (default) .IP "-A, --ansi" generate terminal output (16 colours) .IP "-L, --latex" generate LaTeX .IP "-M, --xterm256" generate terminal output (256 colours) .IP "-R, --rtf" generate RTF .IP "-T, --tex" generate TeX .IP "-X, --xhtml" generate XHTML 1.1 .IP "-Z, --xml" generate XML .IP "-G, --svg" generate SVG (experimental) .IP "-Y, --bbcode" generate BBCode (experimental) .IP "--out-format=" output file in given format. : see long options above .SH Output formatting options .IP "-c, --style-outfile=" name of style definition file or output to stdout, if "stdout" is given as file argument .IP "-d, --doc-title" document title .IP "-e, --style-infile=" name of file to be included in style-outfile .IP "-f, --fragment" omit header and footer of the output document .IP "-F, --reformat=