Edgewall Software

Changes between Version 5 and Version 6 of TracSyntaxColoring


Ignore:
Timestamp:
Nov 16, 2004, 5:26:10 AM (19 years ago)
Author:
daniel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracSyntaxColoring

    v5 v6  
    22Trac supports language-specific colorization (syntax highlighting) of source code in [wiki:WikiFormatting WikiFormatted] text and the [wiki:TracBrowser Source Browser].
    33
    4 To perform this, Trac relies on external software packages with support for a great number of programming languages.
     4To do this, Trac uses external libraries with support for a great number of programming languages.
    55
    6 Currently Trac supports syntax coloring using [http://people.ssh.fi/mtr/genscript/ GNU Enscript] and [http://silvercity.sourceforge.net/ SilverCity].
     6Currently Trac supports syntax coloring using one or more of the following packages:
    77
    8 '''To activate syntax coloring, simply install !SilverCity and/or Enscript.'''
     8 * [http://people.ssh.fi/mtr/genscript/ GNU Enscript]
     9 * [http://silvercity.sourceforge.net/ SilverCity]
    910
    10 Trac will automatically prioritize using !SilverCity before Enscript if possible. If neither is available, Trac will display the data as plain text.
     11To activate syntax coloring, simply install either one (or more) of these packages. No additional configuration is needed.
    1112
    12 '''Note:''' ''Enscript supports a greater number of languages, however !SilverCity is generally faster since it is a library, not having to execute an external process.''
    13 [[br]]'''Note:''' ''!SilverCity uses the lexer from Scintilla. Scintilla supports more languages than !SilverCity. If you want to add a language to !SilverCity that Scintilla supports it not very hard. See SilverCityAddLanguage for info on how to do it. '''
    14 [[br]]'''Note:''' ''Syntax Coloring is only available on trac >= 0.7.''
     13When in use, Trac will automatically prioritize !SilverCity highlighting over Enscript if possible, (see note below).
     14
     15If neither package is available, Trac will display the data as plain text.
     16
     17'''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.
     18
     19=== About !ilverCity ===
     20!SilverCity uses the lexer from [http://www.scintilla.org/ Scintilla]. Scintilla supports more languages than !SilverCity implements. If you want to add a language to !SilverCity supported by Scintilla, it's not very difficult. See [http://projects.edgewall.com/trac/wiki/SilverCityAddLanguage SilverCityAddLanguage] for some information how.
     21
    1522
    1623== Syntax Coloring Support ==
     
    6370
    6471----
    65 See also: WikiProcessors, WikiFormatting, TracWiki, TracBrowser.
     72See also: WikiProcessors, WikiFormatting, TracWiki, TracBrowser