Changes between Version 1 and Version 2 of TracSyntaxColoring


Ignore:
Timestamp:
01/23/07 01:33:03 (18 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracSyntaxColoring

    v1 v2  
    11= 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]. 
     2Trac supports language-specific syntax highlighting of source code in [wiki:WikiFormatting wiki formatted] text and the [wiki:TracBrowser repository browser]. 
    33 
    44To do this, Trac uses external libraries with support for a great number of programming languages. 
     
    66Currently Trac supports syntax coloring using one or more of the following packages: 
    77 
    8  * [http://people.ssh.fi/mtr/genscript/ GNU Enscript] 
     8 * [http://www.codento.com/people/mtr/genscript/ GNU Enscript]  
    99 * [http://silvercity.sourceforge.net/ SilverCity] 
    1010 
    11 To activate syntax coloring, simply install either one (or more) of these packages. No additional configuration is needed. 
     11To 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`. 
    1212 
    1313When in use, Trac will automatically prioritize !SilverCity highlighting over Enscript if possible, (see note below).  
     
    2828|| * ASP    || X || X || 
    2929|| * C      || X || X || 
     30|| * C#     ||   || X(2) || 
    3031|| * C++    || X || X || 
    3132|| * Java   ||   || X || 
     
    5051|| Pyrex    ||   || X || 
    5152|| * Python || X || X || 
    52 || * Ruby   || X || X || 
     53|| * Ruby   || X || X (1) || 
    5354|| Scheme   ||   || X || 
    5455|| Shell    ||   || X || 
     
    6162|| Visual Basic |||| X || 
    6263|| VRML     ||   || X || 
    63 || XML      || X || X || 
     64|| XML      || X || || 
    6465 
    6566''(*) Supported as inline code blocks in [wiki:WikiFormatting Wiki text] using WikiProcessors.'' 
    6667 
     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 
    6772== 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 
    6975 * !SilverCity -- http://silvercity.sf.net/ 
    7076