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 | d2aef9093d60c6965d66eed160292ee854c0a4da (patch) | |
tree | ce6a90ca62b53542d18054197110b0199c17fcc0 /doc/docs | |
parent | 55cfc317915837ef74f6779be15a478563b4c772 (diff) | |
download | pygments-d2aef9093d60c6965d66eed160292ee854c0a4da.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'> |