wiki:TracPygmentsPlugin

Version 8 (modified by anonymous, 5 years ago) (diff)

--

Trac Pygments

Description

Provides syntax coloring for Trac based on Pygments.

Note: This plugin is no longer needed in Trac 0.11, as it supports Pygments natively. Please be sure to uninstall the plugin when upgrading.

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 2007-03-22 19:29:14
TracPygmentsPlugin:

0.11 -> 0.10

[2006] by mitsuhiko on 2007-02-17 20:17:14
TracPygmentsPlugin:

added mitsuhiko's backport

[2005] by mitsuhiko on 2007-02-17 20:15:45
TracPygmentsPlugin:

created matt_good branch

Author/Contributors

Author: mgood
Contributors: mitsuhiko