module documentation

Formatter for HTML output.

Unknown Field: copyright
Copyright 2006-2021 by the Pygments team, see AUTHORS.
Unknown Field: license
BSD, see LICENSE for details.
Constant CSSFILE​_TEMPLATE Undocumented
Constant DOC​_FOOTER Undocumented
Constant DOC​_HEADER Undocumented
Constant DOC​_HEADER​_EXTERNALCSS Undocumented
Variable ctags Undocumented
Class ​Html​Formatter 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 ​_get​_ttype​_class Undocumented
Function escape​_html Escape &, <, > as well as single and double quotes for HTML.
Function webify Undocumented
Variable ​_escape​_html​_table Undocumented
CSSFILE_TEMPLATE: str =

Undocumented

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

Undocumented

Value
'''</body>
</html>
'''
DOC_HEADER =

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-2021 by the Pygments team.
Licensed under the BSD license, see LICENSE for details.
-->)
...
DOC_HEADER_EXTERNALCSS: str =

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">
...
ctags =

Undocumented

def _get_ttype_class(ttype):

Undocumented

def escape_html(text, table=_escape_html_table):
Escape &, <, > as well as single and double quotes for HTML.
def webify(color):

Undocumented

_escape_html_table =

Undocumented