Ñò
Žf¯Jc @ sr d Z y d d k Z Wn e j
o
d Z n Xd Z d Z d Z d Z d „ Z d „ Z d „ Z
d
„ Z d S( s0
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-2009 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
iÿÿÿÿNs pygments.lexerss pygments.formatterss pygments.styless pygments.filtersc c s; t d j o d Sx" t i t ƒ D] } | i ƒ Vq" Wd S( N( t
pkg_resourcest Nonet iter_entry_pointst LEXER_ENTRY_POINTt load( t
entrypoint( ( s3 /usr/lib/python2.6/site-packages/pygments/plugin.pyt find_plugin_lexers1 s
c c sD t d j o d Sx+ t i t ƒ D] } | i | i ƒ f Vq" Wd S( N( R R R t FORMATTER_ENTRY_POINTt nameR ( R ( ( s3 /usr/lib/python2.6/site-packages/pygments/plugin.pyt find_plugin_formatters8 s
c c sD t d j o d Sx+ t i t ƒ D] } | i | i ƒ f Vq" Wd S( N( R R R t STYLE_ENTRY_POINTR R ( R ( ( s3 /usr/lib/python2.6/site-packages/pygments/plugin.pyt find_plugin_styles? s
c c sD t d j o d Sx+ t i t ƒ D] } | i | i ƒ f Vq" Wd S( N( R R R t FILTER_ENTRY_POINTR R ( R ( ( s3 /usr/lib/python2.6/site-packages/pygments/plugin.pyt find_plugin_filtersF s
( t __doc__R t ImportErrorR R R R
R R R R R
( ( ( s3 /usr/lib/python2.6/site-packages/pygments/plugin.pyt