Changes between Version 1 and Version 2 of TracSyntaxColoring


Ignore:
Timestamp:
Aug 2, 2005, 12:07:43 PM (19 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracSyntaxColoring

    v1 v2  
    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:''' ''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 SilverCity ===
     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
    1422
    1523== Syntax Coloring Support ==
     
    6270
    6371----
    64 See also: WikiProcessors, WikiFormatting, TracWiki, TracBrowser.
     72See also: WikiProcessors, WikiFormatting, TracWiki, TracBrowser
Back to Top