;ò s€Gc@s¸dZdZdZdZdZdZdddgZd kZd kZd k l Z d k l Z d „Z e d „Ze d „Zedjo'dklZeieeiƒƒnd S(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! :copyright: 2006-2007 by Georg Brandl, Armin Ronacher and others. :license: BSD, see LICENSE for more details. s0.9sGeorg Brandl shttp://pygments.org/s BSD Licensesrestructuredtextslexsformats highlightN(sStringIOcCsky|i|ƒSWnStj oG}t|idtƒod|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(slexers get_tokensscodes TypeErrorserrs isinstancesargssstr(scodeslexerserr((sN/mnt/gmirror/ports/textproc/py-pygments/work/Pygments-0.9/pygments/__init__.pyslex%s+cCs±yW| o;|iotƒptƒ}|i||ƒ|iƒSn|i||ƒWnSt j oG}t |i dt ƒod|i djot dƒ‚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(soutfiles formattersencodings CStringIOsStringIOs realoutfilesformatstokenssgetvalues TypeErrorserrs isinstancesargssstr(stokenss formattersoutfileserrs realoutfile((sN/mnt/gmirror/ports/textproc/py-pygments/work/Pygments-0.9/pygments/__init__.pysformat3s+cCstt||ƒ||ƒSdS(sJ Lex ``code`` with ``lexer`` and format it with the formatter ``formatter``. If ``filters`` are given they will be applied on the token stream. 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. N(sformatslexscodeslexers formattersoutfile(scodeslexers formattersoutfile((sN/mnt/gmirror/ports/textproc/py-pygments/work/Pygments-0.9/pygments/__init__.pys highlightKs s__main__(smain(s__doc__s __version__s __author__s__url__s __license__s __docformat__s__all__ssyssossStringIOs cStringIOs CStringIOslexsNonesformats highlights__name__spygments.cmdlinesmainsexitsargv(ssyssmains __license__s__all__sStringIOsformats __docformat__s __author__s__url__s CStringIOslexs highlights __version__sos((sN/mnt/gmirror/ports/textproc/py-pygments/work/Pygments-0.9/pygments/__init__.pys?s