diff options
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) |