summaryrefslogtreecommitdiff
path: root/doc/docs/quickstart.rst
diff options
context:
space:
mode:
authorAnteru <bitbucket@ca.sh13.net>2019-01-29 11:03:58 +0000
committerAnteru <bitbucket@ca.sh13.net>2019-01-29 11:03:58 +0000
commitbf380caf5787e6d4c0949a4f39b54f02fc8a44ef (patch)
treeca3dddcda314aca2d1f844586eb5c46f8305bd21 /doc/docs/quickstart.rst
parent9db78a3b084ba4a8c14ff04ec85216e45ecdc0a4 (diff)
parentd5cad2f95623372e7cad9ebb581f42b5b9c1906e (diff)
downloadpygments-git-bf380caf5787e6d4c0949a4f39b54f02fc8a44ef.tar.gz
Merged in camilstaps/pygments-main-solarized (pull request #708)
Adds a solarized style Approved-by: Anteru <bitbucket@ca.sh13.net>
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: