Edgewall Software

Changes between Version 44 and Version 45 of TracSyntaxColoring


Ignore:
Timestamp:
Nov 13, 2009, 11:37:09 AM (15 years ago)
Author:
Ryan Ollos <ryano@…>
Comment:

Documentation updates in reference to #8810

Legend:

Unmodified
Added
Removed
Modified
  • TracSyntaxColoring

    v44 v45  
    2727Starting 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]. While it does not support as many languages as Enscript or Scintilla the overall output quality is much better.
    2828
    29 To use pygments in trac 0.11 you just have to install pygments 0.6 or higher (`pygments_default_style = colorful` under `[mimeviewer]` options has to be added). The default style can be over-ridden by setting a Pygments Theme on the [/prefs/pygments preferences page]. If you want to use it in trac 0.10 too you have to install the [http://trac-hacks.org/wiki/TracPygmentsPlugin TracPygmentsPlugin] from trac hacks. If you encounter any bugs, please file tickets regarding Pygments in [http://dev.pocoo.org/projects/pygments/ the pygments trac].
     29To use pygments in trac 0.11 you just have to install pygments 0.6 or higher.  If you want to use it in trac 0.10 too you have to install the [th:TracPygmentsPlugin TracPygmentsPlugin] from trac hacks. If you encounter any bugs, please file tickets regarding Pygments at [http://dev.pocoo.org/projects/pygments/ the Pygments Trac site].
     30
     31The Pygments default style can specified in the [TracIni#mimeviewer-section mime-viewer] section of trac.ini. The default style can be over-ridden by setting a Style preference on the [/prefs/pygments preferences page].
    3032
    3133It'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.