summaryrefslogtreecommitdiff
path: root/doc/docs
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-06 21:59:45 -0700
committerTim Hatch <tim@timhatch.com>2014-10-06 21:59:45 -0700
commitd2aef9093d60c6965d66eed160292ee854c0a4da (patch)
treece6a90ca62b53542d18054197110b0199c17fcc0 /doc/docs
parent55cfc317915837ef74f6779be15a478563b4c772 (diff)
downloadpygments-d2aef9093d60c6965d66eed160292ee854c0a4da.tar.gz
Fix style docs w/ HtmlFormatter example.
Fixes #1014
Diffstat (limited to 'doc/docs')
-rw-r--r--doc/docs/styles.rst2
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'>