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

85 lines
4.5 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
<00> <0C>i<00><00>J<00>Rt^RIt^RIHt^RIHtR.tRt!RR4tR#)z<>
pygments.formatter
~~~~~~~~~~~~~~~~~~
Base formatter class.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
N)<01> get_bool_opt)<01>get_style_by_name<6D> Formatterc<00>H<00>\V\4'd \V4#V#<00>N)<03>
isinstance<EFBFBD>strr)<01>styles&<26>9/tmp/pip-target-qd_sq_1j/lib/python/pygments/formatter.py<70> _lookup_styler s<00><00><11>%<25><13><1D><1D> <20><15>'<27>'<27> <10>L<EFBFBD>c<00>Pa<00>]tRt^toRtRt.t.tRtRt R Rlt
Rt Rt Rt VtR#)
ra<>
Converts a token stream to text.
Formatters should have attributes to help selecting them. These
are similar to the corresponding :class:`~pygments.lexer.Lexer`
attributes.
.. autoattribute:: name
:no-value:
.. autoattribute:: aliases
:no-value:
.. autoattribute:: filenames
:no-value:
You can pass options as keyword arguments to the constructor.
All formatters accept these basic options:
``style``
The style to use, can be a string or a Style subclass
(default: "default"). Not used by e.g. the
TerminalFormatter.
``full``
Tells the formatter to output a "full" document, i.e.
a complete self-contained document. This doesn't have
any effect for some formatters (default: false).
``title``
If ``full`` is true, the title that should be used to
caption the document (default: '').
``encoding``
If given, must be an encoding name. This will be used to
convert the Unicode token strings to byte strings in the
output. If it is "" or None, Unicode strings will be written
to the output file, which most file-like objects do not
support (default: None).
``outencoding``
Overrides ``encoding`` if given.
NTc <0C>j<00>\VPRR44Vn\VRR4VnVPRR4VnVPRR4;'gRVnVP R 9dR VnVPR
4;'g VP VnWnR#) z<>
As with lexers, this constructor takes arbitrary optional arguments,
and if you override it, you should first process your own options, then
call the base class implementation.
r <00>default<6C>fullF<6C>title<6C><00>encodingNzutf-8<> outencoding)<02>guess<73>chardet)r <00>getr rrrr<00>options)<02>selfrs&,r
<00>__init__<5F>Formatter.__init__Ss<><00><00> #<23>7<EFBFBD>;<3B>;<3B>w<EFBFBD> <09>#B<>C<><04>
<EFBFBD> <20><17>&<26>%<25>8<><04> <09><1C>[<5B>[<5B><17>"<22>-<2D><04>
<EFBFBD><1F> <0B> <0B>J<EFBFBD><04>5<>=<3D>=<3D><14><04> <0A> <0F>=<3D>=<3D>0<> 0<>#<23>D<EFBFBD>M<EFBFBD><1F> <0B> <0B>M<EFBFBD>2<>C<>C<>d<EFBFBD>m<EFBFBD>m<EFBFBD><04> <0A><1E> r c <0C><00>R#)a<>
This method must return statements or declarations suitable to define
the current style for subsequent highlighted text (e.g. CSS classes
in the `HTMLFormatter`).
The optional argument `arg` can be used to modify the generation and
is formatter dependent (it is standardized because it can be given on
the command line).
This method is called by the ``-S`` :doc:`command-line option <cmdline>`,
the `arg` is then given by the ``-a`` option.
r<00>)r<00>args&&r
<00>get_style_defs<66>Formatter.get_style_defscs<00><00>r c <0C><><00>VP'd.\P!VP4^,!V4pVPW4#)z<>
This method must format the tokens from the `tokensource` iterable and
write the formatted version to the file object `outfile`.
Formatter options can control how exactly the tokens are converted.
)r<00>codecs<63>lookup<75>format_unencoded)r<00> tokensource<63>outfiles&&&r
<00>format<61>Formatter.formatrs:<00><00> <10>=<3D>=<3D>=<3D><1C>m<EFBFBD>m<EFBFBD>D<EFBFBD>M<EFBFBD>M<EFBFBD>2<>1<EFBFBD>5<>g<EFBFBD>><3E>G<EFBFBD><13>$<24>$<24>[<5B>:<3A>:r c<08><00>V#rr)<02>cls<6C>names&&r
<00>__class_getitem__<5F>Formatter.__class_getitem__<5F>s<00><00><12>
r )rrrr r)r)<0F>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__r+<00>aliases<65> filenames<65> unicodeoutputrrr'r,<00>__static_attributes__<5F>__classdictcell__)<01> __classdict__s@r
rrs@<00><><00><00>'<08>T <10>D<EFBFBD><11>G<EFBFBD>
<13>I<EFBFBD><19>M<EFBFBD><1F> <12>
;<3B><13>r ) r2r"<00> pygments.utilr<00>pygments.stylesr<00>__all__r rrr r
<00><module>r<s-<00><01><04><0E>&<26>-<2D> <16>-<2D><07><11> h<13>hr