diff options
author | gbrandl <devnull@localhost> | 2007-02-16 19:53:03 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-02-16 19:53:03 +0100 |
commit | f7259aea9cfc0b13798ab93c3ddcd2667f968bfe (patch) | |
tree | 41934a0ba97730de3479a766cf22bc6eefe63d8c /pygments/formatters/html.py | |
parent | 1bf6bea8148a9b07ed33f7b8a57e132e0b404ca9 (diff) | |
download | pygments-f7259aea9cfc0b13798ab93c3ddcd2667f968bfe.tar.gz |
[svn] Move docs for not-so-common options to individual classes.
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r-- | pygments/formatters/html.py | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index 8697ff29..beaf087c 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -144,8 +144,8 @@ class HtmlFormatter(Formatter): td .code .cm { color: #999999 } ... - If you have pygments 0.6 or higher you can also pass a list of tuple to the - `get_style_defs` method to request multiple prefixes for the tokens: + If you have Pygments 0.6 or higher, you can also pass a list or tuple to the + `get_style_defs()` method to request multiple prefixes for the tokens: .. sourcecode:: python @@ -167,6 +167,18 @@ class HtmlFormatter(Formatter): If set to ``True``, don't wrap the tokens at all, not even inside a ``<pre>`` tag. This disables all other options (default: ``False``). + `full` + Tells the formatter to output a "full" document, i.e. a complete + self-contained document (default: ``False``). + + `title` + If `full` is true, the title that should be used to caption the + document (default: ``''``). + + `style` + The style to use, can be a string or a Style subclass (default: + ``'default'``). + `noclasses` If set to true, token ``<span>`` tags will not use CSS classes, but inline styles. This is not recommended for larger pieces of code since @@ -194,6 +206,15 @@ class HtmlFormatter(Formatter): file's path, if the latter can be found. The stylesheet is then written to this file instead of the HTML file. *New in Pygments 0.6.* + `linenos` + If set to ``True``, output line numbers (default: ``False``). + + `linenostart` + The line number for the first line (default: ``1``). + + `linenostep` + If set to a number n > 1, only every nth line number is printed. + `linenospecial` If set to a number n > 0, every nth line number is given the CSS class ``"special"`` (default: ``0``). |