/usr/lib/python2.6/site-packages/pygments/formatters
NameSizeModeActions
bbcode.py33140644editdlrm
bbcode.pyc35800644editdlrm
bbcode.pyo35800644editdlrm
html.py260940644editdlrm
html.pyc245830644editdlrm
html.pyo245830644editdlrm
img.py167640644editdlrm
img.pyc174030644editdlrm
img.pyo174030644editdlrm
latex.py106430644editdlrm
latex.pyc88350644editdlrm
latex.pyo88350644editdlrm
other.py38570644editdlrm
other.pyc47860644editdlrm
other.pyo47860644editdlrm
rtf.py45360644editdlrm
rtf.pyc44250644editdlrm
rtf.pyo44250644editdlrm
svg.py58670644editdlrm
svg.pyc60840644editdlrm
svg.pyo60840644editdlrm
terminal.py40120644editdlrm
terminal.pyc42640644editdlrm
terminal.pyo42640644editdlrm
terminal256.py76040644editdlrm
terminal256.pyc72890644editdlrm
terminal256.pyo72890644editdlrm
_mapping.py55030644editdlrm
_mapping.pyc58800644editdlrm
_mapping.pyo58800644editdlrm
__init__.py18470644editdlrm
__init__.pyc25790644editdlrm
__init__.pyo25790644editdlrm
Edit: /usr/lib/python2.6/site-packages/pygments/formatters/bbcode.pyc (3580B)
Ņō Žf¯Jc@sIdZddklZddklZdgZdefd„ƒYZdS(sĘ pygments.formatters.bbcode ~~~~~~~~~~~~~~~~~~~~~~~~~~ BBcode formatter. :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. i˙˙˙˙(t Formatter(t get_bool_opttBBCodeFormattercBsAeZdZdZddgZgZd„Zd„Zd„ZRS(sã Format tokens with BBcodes. These formatting codes are used by many bulletin boards, so you can highlight your sourcecode with pygments before posting it there. This formatter has no support for background colors and borders, as there are no common BBcode tags for that. Some board systems (e.g. phpBB) don't support colors in their [code] tag, so you can't use the highlighting together with that tag. Text in a [code] tag usually is shown with a monospace font (which this formatter can do with the ``monofont`` option) and no spaces (which you need for indentation) are removed. Additional options accepted: `style` The style to use, can be a string or a Style subclass (default: ``'default'``). `codetag` If set to true, put the output into ``[code]`` tags (default: ``false``) `monofont` If set to true, add a tag to show the code with a monospace font (default: ``false``). tBBCodetbbcodetbbcKsQti||t|dtƒ|_t|dtƒ|_h|_|iƒdS(Ntcodetagtmonofont(Rt__init__RtFalset_codet_monotstylest _make_styles(tselftoptions((s>/usr/lib/python2.6/site-packages/pygments/formatters/bbcode.pyR4s  cCsĪxČ|iD]Ŋ\}}d}}|do |d|d7}d|}n|do|d7}d|}n|do|d 7}d |}n|d o|d 7}d |}n||f|i|/usr/lib/python2.6/site-packages/pygments/formatters/bbcode.pyR <s          c Csz|io|idƒn|io|idƒnd}d}x™|D]‘\}}x||ijo |i}qXW||jo||7}qI|o6|i|\}}|idi|||fƒƒn|}|}qIW|o6|i|\}}|idi|||fƒƒn|io|idƒn|io|idƒn|ip |io|idƒndS(Ns[code]s[font=monospace]Rs[/font]s[/code]s (R twriteR tNoneR tparenttjoin( Rt tokensourcetoutfiletlastvaltlasttypeRtvalueRR((s>/usr/lib/python2.6/site-packages/pygments/formatters/bbcode.pytformat_unencodedOs6    # #  ( t__name__t __module__t__doc__tnametaliasest filenamesRR R#(((s>/usr/lib/python2.6/site-packages/pygments/formatters/bbcode.pyRs   N(R&tpygments.formatterRt pygments.utilRt__all__R(((s>/usr/lib/python2.6/site-packages/pygments/formatters/bbcode.pyt s