관리-도구
편집 파일: bbcode.cpython-311.pyc
� �܋f� � �D � d Z ddlmZ ddlmZ dgZ G d� de� � ZdS )z� pygments.formatters.bbcode ~~~~~~~~~~~~~~~~~~~~~~~~~~ BBcode formatter. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � )� Formatter)�get_bool_opt�BBCodeFormatterc �4 � e Zd ZdZdZddgZg Zd� Zd� Zd� Z dS ) r a� Format tokens with BBcodes. These formatting codes are used by many bulletin boards, so you can highlight your sourcecode with pygments before posting it there. This formatter has no support for background colors and borders, as there are no common BBcode tags for that. Some board systems (e.g. phpBB) don't support colors in their [code] tag, so you can't use the highlighting together with that tag. Text in a [code] tag usually is shown with a monospace font (which this formatter can do with the ``monofont`` option) and no spaces (which you need for indentation) are removed. Additional options accepted: `style` The style to use, can be a string or a Style subclass (default: ``'default'``). `codetag` If set to true, put the output into ``[code]`` tags (default: ``false``) `monofont` If set to true, add a tag to show the code with a monospace font (default: ``false``). �BBCode�bbcode�bbc � � t j | fi |�� t |dd� � | _ t |dd� � | _ i | _ | � � � d S )N�codetagF�monofont)r �__init__r �_code�_mono�styles�_make_styles)�self�optionss �w/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pip/_vendor/pygments/formatters/bbcode.pyr zBBCodeFormatter.__init__3 s` � ���4�+�+�7�+�+�+�!�'�9�e�<�<�� �!�'�:�u�=�=�� ������������ c �� � | j D ]f\ }}dx}}|d r|d|d z z }d|z }|d r |dz }d|z }|d r |d z }d |z }|d r |dz }d |z }||f| j |<