diff options
-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'> |