diff options
| author | Tim Hatch <tim@timhatch.com> | 2014-10-06 21:59:45 -0700 |
|---|---|---|
| committer | Tim Hatch <tim@timhatch.com> | 2014-10-06 21:59:45 -0700 |
| commit | 34341b4368a6fc5a66bac89a7a82e323e0c64ffd (patch) | |
| tree | ce6a90ca62b53542d18054197110b0199c17fcc0 /doc/docs | |
| parent | 300e276d6d4596c732c19196f662a34894fe1090 (diff) | |
| download | pygments-git-34341b4368a6fc5a66bac89a7a82e323e0c64ffd.tar.gz | |
Fix style docs w/ HtmlFormatter example.
Fixes #1014
Diffstat (limited to 'doc/docs')
| -rw-r--r-- | doc/docs/styles.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/docs/styles.rst b/doc/docs/styles.rst index 7ef4de1b..d56db0db 100644 --- a/doc/docs/styles.rst +++ b/doc/docs/styles.rst @@ -21,6 +21,7 @@ option in form of a string: .. sourcecode:: pycon >>> from pygments.styles import get_style_by_name + >>> from pygments.formatters import HtmlFormatter >>> HtmlFormatter(style='colorful').style <class 'pygments.styles.colorful.ColorfulStyle'> @@ -30,6 +31,7 @@ Or you can also import your own style (which must be a subclass of .. sourcecode:: pycon >>> from yourapp.yourmodule import YourStyle + >>> from pygments.formatters import HtmlFormatter >>> HtmlFormatter(style=YourStyle).style <class 'yourapp.yourmodule.YourStyle'> |
