Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions | Variables
pip._vendor.pygments.formatters.html Namespace Reference

Classes

class  HtmlFormatter
 

Functions

 escape_html (text, table=_escape_html_table)
 
 webify (color)
 
 _get_ttype_class (ttype)
 

Variables

 ctags = None
 
dict _escape_html_table
 
str CSSFILE_TEMPLATE
 
str DOC_HEADER
 
str DOC_HEADER_EXTERNALCSS
 
str DOC_FOOTER
 

Detailed Description

    pygments.formatters.html
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for HTML output.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.

Function Documentation

◆ escape_html()

pip._vendor.pygments.formatters.html.escape_html (   text,
  table = _escape_html_table 
)
Escape &, <, > as well as single and double quotes for HTML.

Variable Documentation

◆ _escape_html_table

dict pip._vendor.pygments.formatters.html._escape_html_table
protected
Initial value:
1= {
2 ord('&'): '&amp;',
3 ord('<'): '&lt;',
4 ord('>'): '&gt;',
5 ord('"'): '&quot;',
6 ord("'"): '&#39;',
7}

◆ CSSFILE_TEMPLATE

str pip._vendor.pygments.formatters.html.CSSFILE_TEMPLATE
Initial value:
1= '''\
2/*
3generated by Pygments <https://pygments.org/>
4Copyright 2006-2023 by the Pygments team.
5Licensed under the BSD license, see LICENSE for details.
6*/
7%(styledefs)s
8'''

◆ DOC_FOOTER

str pip._vendor.pygments.formatters.html.DOC_FOOTER
Initial value:
1= '''\
2</body>
3</html>
4'''

◆ DOC_HEADER

str pip._vendor.pygments.formatters.html.DOC_HEADER
Initial value:
1= '''\
2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
3 "http://www.w3.org/TR/html4/strict.dtd">
4<!--
5generated by Pygments <https://pygments.org/>
6Copyright 2006-2023 by the Pygments team.
7Licensed under the BSD license, see LICENSE for details.
8-->
9<html>
10<head>
11 <title>%(title)s</title>
12 <meta http-equiv="content-type" content="text/html; charset=%(encoding)s">
13 <style type="text/css">
14''' + CSSFILE_TEMPLATE + '''
15 </style>
16</head>
17<body>
18<h2>%(title)s</h2>
19
20'''

◆ DOC_HEADER_EXTERNALCSS

str pip._vendor.pygments.formatters.html.DOC_HEADER_EXTERNALCSS
Initial value:
1= '''\
2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
3 "http://www.w3.org/TR/html4/strict.dtd">
4
5<html>
6<head>
7 <title>%(title)s</title>
8 <meta http-equiv="content-type" content="text/html; charset=%(encoding)s">
9 <link rel="stylesheet" href="%(cssfile)s" type="text/css">
10</head>
11<body>
12<h2>%(title)s</h2>
13
14'''