diff options
author | gbrandl <devnull@localhost> | 2007-02-12 23:38:46 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-02-12 23:38:46 +0100 |
commit | 8ac95bf314343f8db0ec8123296b60aefda8b02f (patch) | |
tree | 7813371046f03132d690b8556c857fc453e6c9b6 /pygments/formatters/html.py | |
parent | 16b1f0bb0fbc6ea7aab974cb220406632de4c7c0 (diff) | |
download | pygments-8ac95bf314343f8db0ec8123296b60aefda8b02f.tar.gz |
[svn] Quite a few things:
- new pygmentize options, -F for filters and -H for detail help.
- an automatically-created formatter map
- better HTML formatter subclassing
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r-- | pygments/formatters/html.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index d5e9c3f7..01a9edf9 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -99,7 +99,7 @@ td.linenos { background-color: #f0f0f0; padding-right: 10px; } class HtmlFormatter(Formatter): - """ + r""" 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. @@ -254,6 +254,10 @@ class HtmlFormatter(Formatter): and/or "full document" wrappers if the respective options are set. """ + name = 'HTML' + aliases = ['html'] + filenames = ['*.html', '*.htm'] + def __init__(self, **options): Formatter.__init__(self, **options) self.nowrap = get_bool_opt(options, 'nowrap', False) |