-------------------------------------------------------------------------------- --- HIGHLIGHT MANUAL - Version 2.0-25 --------------------------- JUNE 2004 --- -------------------------------------------------------------------------------- OSI Certified Open Source Software Deutsche Anleitung: README_DE -------------------------------------------------------------------------------- Highlight converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX or XSL-FO files with syntax highlighting. Its language definitions and colour themes are customizable. CONTENT: -------------------------------------------------------------------------------- 1. Platforms 2. Supported programming/markup languages 3. Features 4. User instructions 5. Defining new language definitions 6. Defining new colour themes 7. Configuration file 8. Highlight API 9. Scripts 10. Python binding 11. Contact 1. PLATFORMS: -------------------------------------------------------------------------------- Highlight is written in ISO C++. There exist three versions: - UNIX console application - W32 console application - W32 GUI application For other platforms, see the highlight homepage. The source package is known to compile with gcc3.x, MS Visual .NET, and MW Codewarrior 8. 2. SUPPORTED PROGRAMMING / MARKUP LANGUAGES: -------------------------------------------------------------------------------- Currently, highlight supports the following programming languages, markup languages and configuration files: Action Script, ADA 95, Agda, AMPL, Aspect, Assembler, Amtrix, Avenue, (G)AWK, Bash, BlitzBasic, BibTex, BMS, C,C++, C#, ClearBasic, Clipper, Cobol, Coldfusion MX, CSS, DOS-Batch, Eiffel, Erlang, Euphoria, Express, Felix, Fortran, Frink, Haskell, HTML, httpd.conf, Icon, IDL, INI, IO, Jasmin, Java, JavaScript, JSP, LaTeX, LDIF, Lisp, Lotos, Lotus Script, Lua, Make,Maya, Matlab, Maple, Modelica, Modula 3, Nasal, OCaml, (Object) Pascal, Objective C, Paradox, PATROL, Perl, PHP, Pike, PL/1, PL/SQL, PostScript, POV Ray, Progress, Prolog, Python, Relax NG Compact, Rexx, RPM Spec, Ruby, Small, SML, Spin, Squirrel, SuperX++, Sybase, VHDL, Visual Basic, XML. 3. FEATURES: -------------------------------------------------------------------------------- - highlighting of keywords, types, strings, numbers, escape sequences, comments, symbols and directive lines - coloured output in HTML, XHTML 1.1, RTF, TeX, LaTeX or XSL-FO format - reformatting and indentation of C, C++, C# and Java source code - wrapping of long lines - output of line numbers - choice to embed the CSS-definitions in the output (X)HTML file or to save them in a separate CSS-file - 50 colour themes - recursive batch processing of directories - conversion of plain text to a given output format without highlighting 4. USER INSTRUCTIONS: -------------------------------------------------------------------------------- You can get the help screen by typing highlight -h: USAGE: highlight [afhlpqvwCEILPRTXYVW] [-i input file] [-o output file] [-S syntax] [-O outdir] [-b wildcard] [-B wildcard] [-t num] [-c css_outfile] [-e css_infile] [-s CSS_style] [-D newDataDir] [input files] -b, --batch= convert all matching files in current directory (Example: highlight -b '*.cpp') -B, --batch-recursive= like -b, but uses recursive search -D, --data-dir set path to highlight data directory -E, --add-data-dir= set path to an additional data directory, which is searched first -f, --fragment omit file header and footer -F, --format-style=