|e8 .dZddlZddlZddlZddlZddlmZddlmZddl m Z m Z m Z ddl mZmZmZ ddlZdgZedd ed d ed d eddeddiZefdZdZdZdZdezdzZdZdZGddeZy#e$rdZY[wxYw)z pygments.formatters.html ~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for HTML output. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N)StringIO) Formatter)TokenTextSTANDARD_TYPES) get_bool_opt get_int_opt get_list_opt HtmlFormatter&z&z>"z"'z'c$|j|S)z as well as single and double quotes for HTML.) translate)texttables :/usr/lib/python3/dist-packages/pygments/formatters/html.py escape_htmlr&s >>%  cT|jds|jdr|Sd|zS)Ncalcvar#) startswith)colors rwebifyr+s, 5#3#3E#: U{rctj|}|r|Sd}|/d|dz|z}|j}tj|}|/||zS)N-)rgetparent)ttypefnameanames r_get_ttype_classr(2sb   u %E  E -eBi%' ""5) - 5=rz/* generated by Pygments Copyright 2006-2023 by the Pygments team. Licensed under the BSD license, see LICENSE for details. */ %(styledefs)s a %(title)s

%(title)s

a5 %(title)s

%(title)s

z ceZdZdZdZdgZddgZdZdZdZ d Z d Z d%d Z d%d Z d%dZdZdZedZedZedZdZdZdZdZdZdZdZdZdZej>ddZ d Z!d!Z"d"Z#d#Z$d$Z%y )&r a, Format tokens as HTML 4 ```` tags. By default, the content is enclosed in a ``
`` tag, itself wrapped in a ``
`` tag (but see the `nowrap` option). The ``
``'s CSS class can be set by the `cssclass` option. If the `linenos` option is set to ``"table"``, the ``
`` is
    additionally wrapped inside a ```` which has one row and two
    cells: one containing the line numbers and one containing the code.
    Example:

    .. sourcecode:: html

        
1
            2
def foo(bar):
              pass
            
(whitespace added to improve clarity). A list of lines can be specified using the `hl_lines` option to make these lines highlighted (as of Pygments 0.11). With the `full` option, a complete HTML 4 document is output, including the style definitions inside a ``