Files
ServerSync/lib/pygments/__pycache__/__init__.cpython-314.pyc

53 lines
3.3 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>i<EFBFBD> <00><00>D<00>Rt^RIHtHtRtRt.ROtRtR RltR Rlt R#)
a<EFBFBD>
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, all image
formats that PIL supports, and ANSI sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainfuck!
The `Pygments master branch`_ is installable with ``easy_install Pygments==dev``.
.. _Pygments master branch:
https://github.com/pygments/pygments/archive/master.zip#egg=Pygments-dev
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
)<02>StringIO<49>BytesIOz2.19.2<EFBFBD>restructuredtextc<04><><00>VPV4# \d;^RIHp\ T\
4'd\ Y4'd \R4hhi;i)z<>
Lex `code` with the `lexer` (must be a `Lexer` instance)
and return an iterable of tokens. Currently, this only calls
`lexer.get_tokens()`.
)<01>
RegexLexerz4lex() argument must be a lexer instance, not a class)<07>
get_tokens<EFBFBD> TypeError<6F>pygments.lexerr<00>
isinstance<EFBFBD>type<70>
issubclass)<03>code<64>lexerrs&& <20>8/tmp/pip-target-qd_sq_1j/lib/python/pygments/__init__.py<70>lexr#sV<00><00> <0E><14><1F><1F><04>%<25>%<25><> <14><0E>-<2D> <15>e<EFBFBD>T<EFBFBD> "<22> "<22>z<EFBFBD>%<25>'D<>'D<><1B>*<2A>+<2B> +<2B> <0A> <0E>s
<00><00>AANc<04>n<00>V'gS\VRR4;'d\4;'g \4pVPW4VP 4#VPW4R# \
d;^RIHp\T\4'd\Y4'd \ R4hhi;i)a
Format ``tokens`` (an iterable of tokens) with the formatter ``formatter``
(a `Formatter` instance).
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.
<EFBFBD>encodingN)<01> Formatterz;format() argument must be a formatter instance, not a class) <0B>getattrrr<00>format<61>getvaluer<00>pygments.formatterrr
r r )<05>tokens<6E> formatter<65>outfile<6C> realoutfilers&&& rrr4s<><00><00> <0E><16>!<21>)<29>Z<EFBFBD><14>><3E>L<>L<>7<EFBFBD>9<EFBFBD>Z<>Z<>PX<50>PZ<50>K<EFBFBD> <15> <1C> <1C>V<EFBFBD> 1<><1E>'<27>'<27>)<29> )<29> <15> <1C> <1C>V<EFBFBD> -<2D><> <14><0E>0<> <15>i<EFBFBD><14> &<26> &<26>:<3A>i<EFBFBD>+K<>+K<><1B>*<2A>+<2B> +<2B> <0A> <0E>s!<00>A/<00>A/<00>A/<00>+A/<00>A/<00>/AB4c<04>,<00>\\W4W#4#)zd
This is the most high-level highlighting function. It combines `lex` and
`format` in one function.
)rr)r rrrs&&&&r<00> highlightrMs<00><00>
<12>#<23>d<EFBFBD>"<22>I<EFBFBD> 7<>7<>)rrr)N)
<EFBFBD>__doc__<5F>iorr<00> __version__<5F> __docformat__<5F>__all__rrr<00>rr<00><module>r%s-<00><01><04>4!<21><16> <0B>"<22> <0A>
(<28><07><0E>"<0E>28r