Contents
Trac Pygments
Description
Provides syntax coloring for Trac based on Pygments.
Bugs/Feature Requests
Existing bugs and feature requests for TracPygmentsPlugin are here. If you have any issues, create a new ticket.
Download
Download the zipped source from here.
Source
You can check out TracPygmentsPlugin from here using Subversion, or browse the source with Trac.
Example
[components] tracpygments.* = enabled
/** * Sample Java code * @author anonymous */ public class Foo { /** * Main method */ public static void main(String[] args) { // Show message System.out.println("This is a test."); } }
Options
All options apply to the [mimeviewer] section of the config file.
The pygments_default_style option changes the default style used by pygments to render your source.
The pygments_modes is a list option of additional mimetype:mode:quality tuples. See the source for details.
Recent Changes
[2113] by mitsuhiko on 03/22/07 19:29:14
0.11 -> 0.10
[2006] by mitsuhiko on 02/17/07 20:17:14
added mitsuhiko's backport
[2005] by mitsuhiko on 02/17/07 20:15:45
created matt_good branch
[1851] by mgood on 01/08/07 03:22:35
change import for get_lexer_by_name to be compatible with Pygments 0.6 (fixes #1078)