module documentation

pygments.formatters.html ~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for HTML output. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details.

Class HtmlFormatter Format tokens as HTML 4 ``<span>`` tags within a ``<pre>`` tag, wrapped in a ``<div>`` tag. The ``<div>``'s CSS class can be set by the `cssclass` option.
Function escape_html Escape &, <, > as well as single and double quotes for HTML.
Function webify Undocumented
Constant CSSFILE_TEMPLATE Undocumented
Constant DOC_FOOTER Undocumented
Constant DOC_HEADER Undocumented
Constant DOC_HEADER_EXTERNALCSS Undocumented
Function _get_ttype_class Undocumented
Variable _escape_html_table Undocumented
def escape_html(text, table=_escape_html_table): (source)

Escape &, <, > as well as single and double quotes for HTML.

def webify(color): (source)

Undocumented

CSSFILE_TEMPLATE: str = (source)

Undocumented

Value
'''/*
generated by Pygments <https://pygments.org/>
Copyright 2006-2022 by the Pygments team.
Licensed under the BSD license, see LICENSE for details.
*/
%(styledefs)s
'''
DOC_FOOTER: str = (source)

Undocumented

Value
'''</body>
</html>
'''
DOC_HEADER = (source)

Undocumented

Value
('''<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<!--
generated by Pygments <https://pygments.org/>
Copyright 2006-2022 by the Pygments team.
Licensed under the BSD license, see LICENSE for details.
-->)
...
DOC_HEADER_EXTERNALCSS: str = (source)

Undocumented

Value
'''<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html>
<head>
  <title>%(title)s</title>
  <meta http-equiv="content-type" content="text/html; charset=%(encoding)s">
...
def _get_ttype_class(ttype): (source)

Undocumented

_escape_html_table = (source)

Undocumented