.TH highlight 1 "2008-01-04" "Andre Simon" "user documentation" .SH NAME Highlight - a universal sourcecode to formatted text converter .SH SYNOPSIS .B highlight [acdefhiklnopqrstuvwzABCDEHIKLOPRSTXVWZ] [-i input file] [-o output file] [-S syntax] [-O outdir] [-B wildcard] [-H language] [-t num] [-c style_outfile] [-e style_infile] [-s style] [-D data dir] [-E add. data dir] [-F format] [-u encoding] [input files] .SH DESCRIPTION .B Highlight converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX, XML or ANSI escape sequences. There are 40 colour themes available. .B Highlight recognizes keywords, numbers, strings, comments, symbols and preprocessor directives. It supports Action Script, ADA 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash, BlitzBasic, BMS, C, C++, C#, ClearBasic, Clipper, Cobol, CSS, DOS-Batch, Eiffel, Euphoria, Express, Felix, Frink, Forth, Fortran, Haskell, HTML, HTTPD, IDL, INI, IO, Jasmin, Java, JavaScript, JSP, LaTeX, LDIF, Lotus Script, Lua, Make, Maya, Matlab, MaxScript, Modelica, Modula 3, Nasal, Nice, Oberon, Object Script, OCaml, Pascal, Paradox, PATROL, Perl, PHP, Pike, PL/1, PL/SQL, POV Ray, Progress, Python, Relax NG, Rexx, Ruby, Small, SML, Spin, Sybase, Squirrel, SuperX++, VHDL, Visual Basic, XML and more. .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 "--help-lang=" print help in given language =[br, cz, en, es, de, fr] .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=" define 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 "--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 file (default) .IP "-A, --ansi" generate terminal output (16 colours) .IP "-L, --latex" generate LaTeX file .IP "-M, --xterm256" generate terminal output (256 colours) .IP "-R, --rtf" generate RTF file .IP "-T, --tex" generate TeX file .IP "-X, --xhtml" generate XHTML 1.1 file .IP "-Z, --xml" generate XML file .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=