Changes between Version 1 and Version 2 of TracSyntaxColoring
- Timestamp:
- 11/18/04 18:03:00 (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracSyntaxColoring
v1 v2 2 2 Trac supports language-specific colorization (syntax highlighting) of source code in [wiki:WikiFormatting WikiFormatted] text and the [wiki:TracBrowser Source Browser]. 3 3 4 To perform this, Trac relies on external software packages with support for a great number of programming languages.4 To do this, Trac uses external libraries with support for a great number of programming languages. 5 5 6 Currently Trac supports syntax coloring using [http://people.ssh.fi/mtr/genscript/ GNU Enscript] and [http://silvercity.sourceforge.net/ SilverCity].6 Currently Trac supports syntax coloring using one or more of the following packages: 7 7 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] 9 10 10 T rac will automatically prioritize using !SilverCity before Enscript if possible. If neither is available, Trac will display the data as plain text.11 To activate syntax coloring, simply install either one (or more) of these packages. No additional configuration is needed. 11 12 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.'' 13 When in use, Trac will automatically prioritize !SilverCity highlighting over Enscript if possible, (see note below). 14 15 If 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 14 22 15 23 == Syntax Coloring Support == … … 62 70 63 71 ---- 64 See also: WikiProcessors, WikiFormatting, TracWiki, TracBrowser .72 See also: WikiProcessors, WikiFormatting, TracWiki, TracBrowser