https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/pygments/formatters/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/pygments/formatters/__pycache__/pangomarkup.cpython-310.pyc
o

���a��@sJdZddlmZdgZed�ded�diZefdd	�ZGd
d�de�ZdS)z�
    pygments.formatters.pangomarkup
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for Pango markup output.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�	Formatter�PangoMarkupFormatter�&z&amp;�<z&lt;cCs
|�|�S)z Escape & and < for Pango Markup.)�	translate)�text�table�r	�A/usr/lib/python3/dist-packages/pygments/formatters/pangomarkup.py�escape_special_charss
rc@s0eZdZdZdZddgZgZdd�Zdd�Zd	S)
rzk
    Format tokens as Pango Markup code. It can then be rendered to an SVG.

    .. versionadded:: 2.9
    zPango Markup�pango�pangomarkupcKs�tj|fi|��i|_|jD]C\}}d}d}|dr'|d|d7}d|}|dr3|d7}d|}|dr?|d	7}d
|}|drK|d7}d
|}||f|j|<qdS)N��colorz<span fgcolor="#%s">z</span>�boldz<b>z</b>�italicz<i>z</i>�	underlinez<u>z</u>)r�__init__�styles�style)�self�options�tokenr�start�endr	r	r
r's&�zPangoMarkupFormatter.__init__c	Cs�d}d}|�d�|D]4\}}||jvr|j}||jvs||kr'|t|�7}q|r9|j|\}}|�|||�t|�}|}q|rR|j|\}}|�|||�|�d�dS)Nrz<tt>z</tt>)�writer�parentr)	r�tokensource�outfile�lastval�lasttype�ttype�value�
stylebegin�styleendr	r	r
�format_unencoded=s$


�z%PangoMarkupFormatter.format_unencodedN)	�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenamesrr%r	r	r	r
rsN)r)�pygments.formatterr�__all__�ord�
_escape_tablerrr	r	r	r
�<module>s
�

https://t.me/RX1948 - 2025