Ñò Žf¯Jc@s«dZdZdZdddgZddkZddkZddklZlZd „Z dd „Z dd „Z e d jo*dd klZeieeiƒƒndS(sÖ Pygments ~~~~~~~~ Pygments is a syntax highlighting package written in Python. It is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. Highlights are: * a wide range of common languages and markup formats is supported * special attention is paid to details, increasing quality by a fair amount * support for new languages and formats are added easily * a number of output formats, presently HTML, LaTeX, RTF, SVG and ANSI sequences * it is usable as a command-line tool and as a library * ... and it highlights even Brainfuck! The `Pygments tip`_ is installable with ``easy_install Pygments==dev``. .. _Pygments tip: http://dev.pocoo.org/hg/pygments-main/archive/tip.tar.gz#egg=Pygments-dev :copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. s1.1.1trestructuredtexttlextformatt highlightiÿÿÿÿN(tStringIOtBytesIOcCsky|i|ƒSWnStj oG}t|idtƒo$d|idjotdƒ‚n‚nXdS(sG Lex ``code`` with ``lexer`` and return an iterable of tokens. isunbound method get_tokenss4lex() argument must be a lexer instance, not a classN(t get_tokenst TypeErrort isinstancetargststr(tcodetlexerterr((s5/usr/lib/python2.6/site-packages/pygments/__init__.pyR'scCs­yS|p8|io tƒptƒ}|i||ƒ|iƒS|i||ƒWnStj oG}t|idtƒo$d|idjotdƒ‚n‚nXdS(só Format a tokenlist ``tokens`` with the formatter ``formatter``. If ``outfile`` is given and a valid file object (an object with a ``write`` method), the result will be written to it, otherwise it is returned as a string. isunbound method formats;format() argument must be a formatter instance, not a classN( tencodingRRRtgetvalueRRR R (ttokenst formattertoutfilet realoutfileR ((s5/usr/lib/python2.6/site-packages/pygments/__init__.pyR5s cCstt||ƒ||ƒS(sÿ Lex ``code`` with ``lexer`` and format it with the formatter ``formatter``. If ``outfile`` is given and a valid file object (an object with a ``write`` method), the result will be written to it, otherwise it is returned as a string. (RR(R R RR((s5/usr/lib/python2.6/site-packages/pygments/__init__.pyRMst__main__(tmain(t__doc__t __version__t __docformat__t__all__tsystost pygments.utilRRRtNoneRRt__name__tpygments.cmdlineRtexittargv(((s5/usr/lib/python2.6/site-packages/pygments/__init__.pyts