Edgewall Software

Changes between Version 28 and Version 29 of TracSyntaxColoring


Ignore:
Timestamp:
Jan 19, 2007, 3:41:25 PM (17 years ago)
Author:
Armin Ronacher
Comment:

documented pygments

Legend:

Unmodified
Added
Removed
Modified
  • TracSyntaxColoring

    v28 v29  
    1313If you don't know why trac isnt detecting an installed library, try turning on Trac logging. It actually appears that Trac is currently broken with SilverCity. You need an older version of SilverCity. http://trac.edgewall.org/wiki/TracFaq#why-is-my-css-code-not-being-highlighted-even-though-i-have-silvercity-installed
    1414
    15 Some people also talk about trying this out: http://trac-hacks.org/svn/tracpygmentsplugin/0.11/
    16 
    1715When in use, Trac will automatically prioritize !SilverCity highlighting over Enscript if possible, (see note below).
    1816
     
    2422!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.
    2523
     24=== About Pygments ===
     25
     26Starting with trac 0.11 [http://pygments.pocoo.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.pocoo.org/docs/ good documented]. While it does not support as many languages as Enscript or Scintilla the overall output quality is much better.
     27
     28To use pygments trac 0.11 you just have to install pygments 0.5.1 or higher. 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://trac.pocoo.org/ the pocoo trac].
     29
     30It'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.pocoo.org/docs/lexers/ supported lexers] on the pygments webpage.
     31
    2632
    2733== Syntax Coloring Support ==
    2834
    29 || || !SilverCity || Enscript ||
    30 || Ada      ||   || X ||
    31 || Asm      ||   || X ||
    32 || * ASP    || X || X ||
    33 || * C      || X || X ||
    34 || * C#     ||   || X(2) ||
    35 || * C++    || X || X ||
    36 || * Java   || X(4)|| X ||
    37 || Awk      ||   || X ||
    38 || CSS      || X ||   ||
    39 || Diff     ||   || X ||
    40 || Eiffel   ||   || X ||
    41 || Elisp    ||   || X ||
    42 || Fortran  ||   || X(3) ||
    43 || Haskell  ||   || X ||
    44 || HTML     || X || X ||
    45 || IDL      ||   || X ||
    46 || Javascript || X || X ||
    47 || m4       ||   || X ||
    48 || Makefile ||   || X ||
    49 || Matlab   ||   || X (5) ||
    50 || Objective-C|| || X ||
    51 || Pascal   ||   || X ||
    52 || * Perl   || X || X ||
    53 || * PHP    || X || X ||
    54 || PSP      || X ||   ||
    55 || Pyrex    ||   || X ||
    56 || * Python || X || X ||
    57 || * Ruby   || X || X (1) ||
    58 || Scheme   ||   || X ||
    59 || Shell    ||   || X ||
    60 || SQL      || X || X ||
    61 || Troff    ||   || X ||
    62 || TCL      ||   || X ||
    63 || Tex      ||   || X ||
    64 || Verilog  || X(4) || X ||
    65 || VHDL     ||   || X ||
    66 || Visual Basic |||| X ||
    67 || VRML     ||   || X ||
    68 || XML      || X ||  ||
     35|| || !SilverCity || Enscript || Pygments ||
     36|| Ada      ||   || X || ||
     37|| Asm      ||   || X || ||
     38|| Apache Conf (htaccess)) || || || X ||
     39|| * ASP    || X || X || ||
     40|| * C      || X || X || X ||
     41|| * C#     ||   || X(2) || X ||
     42|| * C++    || X || X || X ||
     43|| * Java   || X(4)|| X || X ||
     44|| Awk      ||   || X || ||
     45|| Boo || || || X ||
     46|| CSS      || X ||   || X ||
     47|| Python Doctests || || || X ||
     48|| Diff     ||   || X || X ||
     49|| Eiffel   ||   || X || ||
     50|| Elisp    ||   || X || ||
     51|| Fortran  ||   || X(3) || ||
     52|| Haskell  ||   || X || ||
     53|| Genshi || || || X ||
     54|| HTML     || X || X || X ||
     55|| IDL      ||   || X || ||
     56|| INI || || || X ||
     57|| Javascript || X || X || X ||
     58|| Lua || || || X ||
     59|| m4       ||   || X || ||
     60|| Makefile ||   || X || X ||
     61|| Mako || || || X ||
     62|| Matlab   ||   || X (5) || ||
     63|| Mygthy || || || X ||
     64|| Objective-C|| || X || ||
     65|| Pascal   ||   || X || X ||
     66|| * Perl   || X || X || X ||
     67|| * PHP    || X || X || X ||
     68|| PSP      || X ||   || ||
     69|| Pyrex    ||   || X || ||
     70|| * Python || X || X || X ||
     71|| * Ruby   || X || X (1) || X ||
     72|| Scheme   ||   || X || X ||
     73|| Shell    ||   || X || X ||
     74|| Smarty || || || X ||
     75|| SQL      || X || X || X ||
     76|| Troff    ||   || X || X ||
     77|| TCL      ||   || X || ||
     78|| Tex      ||   || X || X ||
     79|| Verilog  || X(4) || X || ||
     80|| VHDL     ||   || X || ||
     81|| Visual Basic |||| X || X ||
     82|| VRML     ||   || X || ||
     83|| XML      || X ||  || X ||
    6984
    7085''(*) Supported as inline code blocks in [wiki:WikiFormatting Wiki text] using WikiProcessors.''