diff options
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r-- | pygments/formatters/html.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index a25230aa..73ac77a5 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -105,9 +105,10 @@ class HtmlFormatter(Formatter): in a ``<div>`` tag. The ``<div>``'s CSS class can be set by the `cssclass` option. - If the `linenos` option is given and true, the ``<pre>`` is additionally - wrapped inside a ``<table>`` which has one row and two cells: one - containing the line numbers and one containing the code. Example: + If the `linenos` option is set to ``"table"``, the ``<pre>`` is + additionally wrapped inside a ``<table>`` which has one row and two + cells: one containing the line numbers and one containing the code. + Example: .. sourcecode:: html @@ -126,8 +127,9 @@ class HtmlFormatter(Formatter): </td> </tr></table></div> - (whitespace added to improve clarity). Wrapping can be disabled using the - `nowrap` option. + (whitespace added to improve clarity). + + Wrapping can be disabled using the `nowrap` option. With the `full` option, a complete HTML 4 document is output, including the style definitions inside a ``<style>`` tag, or in a separate file if |