summaryrefslogtreecommitdiff
path: root/doc/docs/quickstart.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/docs/quickstart.rst')
-rw-r--r--doc/docs/quickstart.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/docs/quickstart.rst b/doc/docs/quickstart.rst
index dba7698a..3a823e7f 100644
--- a/doc/docs/quickstart.rst
+++ b/doc/docs/quickstart.rst
@@ -39,7 +39,7 @@ Here is a small example for highlighting Python code:
from pygments.formatters import HtmlFormatter
code = 'print "Hello World"'
- print highlight(code, PythonLexer(), HtmlFormatter())
+ print(highlight(code, PythonLexer(), HtmlFormatter()))
which prints something like this:
@@ -56,7 +56,7 @@ can be produced by:
.. sourcecode:: python
- print HtmlFormatter().get_style_defs('.highlight')
+ print(HtmlFormatter().get_style_defs('.highlight'))
The argument to :func:`get_style_defs` is used as an additional CSS selector:
the output may look like this: