pygments.pluginΒΆ

Pygments setuptools plugin interface. The methods defined here also work if setuptools isn’t installed but they just return nothing.

lexer plugins:

[pygments.lexers]
yourlexer = yourmodule:YourLexer

formatter plugins:

[pygments.formatters]
yourformatter = yourformatter:YourFormatter
/.ext = yourformatter:YourFormatter

As you can see, you can define extensions for the formatter with a leading slash.

syntax plugins:

[pygments.styles]
yourstyle = yourstyle:YourStyle

filter plugin:

[pygments.filter]
yourfilter = yourfilter:YourFilter
copyright:Copyright 2006-2013 by the Pygments team, see AUTHORS.
license:BSD, see LICENSE for details.

Project Versions

This Page