summaryrefslogtreecommitdiff
path: root/doc/docs/quickstart.rst
diff options
context:
space:
mode:
authorAnteru <bitbucket@ca.sh13.net>2018-12-13 19:19:04 +0000
committerAnteru <bitbucket@ca.sh13.net>2018-12-13 19:19:04 +0000
commitd041d381f04383e3cf7354b04fc3abeff5ae5923 (patch)
treed2795bfcbb0b598bdcb14c29be4efe74c1017463 /doc/docs/quickstart.rst
parent82ff414ae4d89e2ff9712c625ef75420e5e5eaae (diff)
parentf2e2c428a0c7f2ac4ea7ce119ed69b7b26bdf8f4 (diff)
downloadpygments-git-d041d381f04383e3cf7354b04fc3abeff5ae5923.tar.gz
Merged in t-b/pygments-main (pull request #764)
Update for Igor Pro 8
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: