tracsyntaxcoloring
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tracsyntaxcoloring [2015/06/09 15:23] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Syntax Coloring of Source Code ====== | ||
+ | Trac supports language-specific syntax highlighting of source code in [[: | ||
+ | |||
+ | To do this, Trac uses external libraries with support for a great number of programming languages. | ||
+ | |||
+ | Currently Trac supports syntax coloring using one or more of the following packages: | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | To activate syntax coloring, simply install either one (or more) of these packages. No additional configuration is required, however to modify the colors, have a look at `trac/ | ||
+ | |||
+ | When in use, Trac will automatically prioritize SilverCity highlighting over Enscript if possible, (see note below). | ||
+ | |||
+ | If neither package is available, Trac will display the data as plain text. | ||
+ | |||
+ | **Note:** Enscript supports a greater number of languages, however SilverCity is generally faster since it is a library and isn't executed in an external process. | ||
+ | |||
+ | ==== About SilverCity ==== | ||
+ | SilverCity uses the lexer from [[http:// | ||
+ | |||
+ | |||
+ | ===== Syntax Coloring Support ===== | ||
+ | |||
+ | | | SilverCity | Enscript | | ||
+ | | Ada | | X | | ||
+ | | Asm | | X | | ||
+ | | * ASP | X | X | | ||
+ | | * C | X | X | | ||
+ | | * C# | ||
+ | | * C++ | X | X | | ||
+ | | * Java | ||
+ | | Awk | | X | | ||
+ | | CSS | X | | | ||
+ | | Diff | ||
+ | | Eiffel | ||
+ | | Elisp | | X | | ||
+ | | Fortran | ||
+ | | Haskell | ||
+ | | HTML | X | X | | ||
+ | | IDL | | X | | ||
+ | | Javascript | X | X | | ||
+ | | m4 | ||
+ | | Makefile | | X | | ||
+ | | Matlab | ||
+ | | Objective-C| | X | | ||
+ | | Pascal | ||
+ | | * Perl | X | X | | ||
+ | | * PHP | X | X | | ||
+ | | PSP | X | | | ||
+ | | Pyrex | | X | | ||
+ | | * Python | X | X | | ||
+ | | * Ruby | X | X (1) | | ||
+ | | Scheme | ||
+ | | Shell | | X | | ||
+ | | SQL | X | X | | ||
+ | | Troff | | X | | ||
+ | | TCL | | X | | ||
+ | | Tex | | X | | ||
+ | | Verilog | ||
+ | | VHDL | ||
+ | | Visual Basic | | X | | ||
+ | | VRML | ||
+ | | XML | X | | | ||
+ | |||
+ | //(*) Supported as inline code blocks in [[: | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ===== Extra Software ===== | ||
+ | * GNU Enscript -- http:// | ||
+ | * GNU Enscript for Windows -- http:// | ||
+ | * SilverCity -- http:// | ||
+ | |||
+ | ---- | ||
+ | See also: WikiProcessors, | ||
tracsyntaxcoloring.txt · Last modified: 2015/06/09 15:23 by 127.0.0.1