Changes between Version 1 and Version 2 of TracSyntaxColoring
- Timestamp:
- 01/23/07 01:33:03 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracSyntaxColoring
v1 v2 1 1 = Syntax Coloring of Source Code = 2 Trac supports language-specific colorization (syntax highlighting) of source code in [wiki:WikiFormatting WikiFormatted] text and the [wiki:TracBrowser Source Browser].2 Trac supports language-specific syntax highlighting of source code in [wiki:WikiFormatting wiki formatted] text and the [wiki:TracBrowser repository browser]. 3 3 4 4 To do this, Trac uses external libraries with support for a great number of programming languages. … … 6 6 Currently Trac supports syntax coloring using one or more of the following packages: 7 7 8 * [http:// people.ssh.fi/mtr/genscript/ GNU Enscript]8 * [http://www.codento.com/people/mtr/genscript/ GNU Enscript] 9 9 * [http://silvercity.sourceforge.net/ SilverCity] 10 10 11 To activate syntax coloring, simply install either one (or more) of these packages. No additional configuration is needed.11 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/htdocs/css/code.css`. 12 12 13 13 When in use, Trac will automatically prioritize !SilverCity highlighting over Enscript if possible, (see note below). … … 28 28 || * ASP || X || X || 29 29 || * C || X || X || 30 || * C# || || X(2) || 30 31 || * C++ || X || X || 31 32 || * Java || || X || … … 50 51 || Pyrex || || X || 51 52 || * Python || X || X || 52 || * Ruby || X || X ||53 || * Ruby || X || X (1) || 53 54 || Scheme || || X || 54 55 || Shell || || X || … … 61 62 || Visual Basic |||| X || 62 63 || VRML || || X || 63 || XML || X || X||64 || XML || X || || 64 65 65 66 ''(*) Supported as inline code blocks in [wiki:WikiFormatting Wiki text] using WikiProcessors.'' 66 67 68 ''(1) Ruby highlighting is not included in the Enscript distribution. Highlighting rules for Ruby can be obtained from: http://neugierig.org/software/ruby/ 69 70 ''(2) C# highlighting is not included in the Enscript distribution. Highlighting rules for C# can be obtained from: http://wiki.hasno.info/index.php/Csharp.st 71 67 72 == Extra Software == 68 * GNU Enscript -- http://people.ssh.fi/mtr/genscript/ 73 * GNU Enscript -- http://directory.fsf.org/GNU/enscript.html 74 * GNU Enscript for Windows -- http://gnuwin32.sourceforge.net/packages/enscript.htm 69 75 * !SilverCity -- http://silvercity.sf.net/ 70 76