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

lexer plugins:

yourlexer = yourmodule:YourLexer

formatter plugins:

yourformatter = yourformatter:YourFormatter
/.ext = yourformatter:YourFormatter

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

syntax plugins:

yourstyle = yourstyle:YourStyle

filter plugin:

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

Project Versions

This Page