If none of these packages is available, Trac will display the data as plain text.

14

15

15

If neither package is available, Trac will display the data as plain text.

16

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.

17

=== About Pygments ===

18

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.

19

Starting with trac 0.11 [http://pygments.org/ pygments] will be the new default highlighter. It's a highlighting library implemented in pure python, very fast, easy to extend and [http://pygments.org/docs/ well documented].

20

21

The Pygments default style can specified in the [TracIni#mimeviewer-section mime-viewer] section of trac.ini. The default style can be overridden by setting a Style preference on the [/prefs/pygments preferences page].

22

23

It's very likely that the list below is outdated because the list of supported pygments lexers is growing weekly. Just have a look at the page of [http://pygments.org/docs/lexers/ supported lexers] on the pygments webpage.

''[=#a1 (1)] Not included in the Enscript distribution. Additional highlighting rules can be obtained for

91

[http://neugierig.org/software/ruby/ Ruby],

92

[http://wiki.hasno.info/index.php/Csharp.st C#],

93

[http://wiki.hasno.info/index.php/F90.st Fortran 90x/2003]

94

95

''[=#a2 (2)] since Silvercity 0.9.7 released on 2006-11-23

96

97

''[=#a3 (3)] By default `.m` files are considered Objective-C files. In order to treat `.m` files as MATLAB files, add "text/matlab:m" to the "mime_map" setting in the [wiki:TracIni#mimeviewer-section "[mimeviewer] section of trac.ini"].