summaryrefslogtreecommitdiff
path: root/doc/markup/code.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-23 19:23:08 +0100
committerGeorg Brandl <georg@python.org>2009-02-23 19:23:08 +0100
commitcadb5af9f1e5742b6a9e14cdc1b13ce33fbcd546 (patch)
tree7cad8d4870db8733ce8c0e8f7843c49ab45e9762 /doc/markup/code.rst
parent2d0345a7d9ad1ddfd9203db7e1e0cb0ce558da8a (diff)
downloadsphinx-git-cadb5af9f1e5742b6a9e14cdc1b13ce33fbcd546.tar.gz
Note that Python code in code blocks is parsed.
Diffstat (limited to 'doc/markup/code.rst')
-rw-r--r--doc/markup/code.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/markup/code.rst b/doc/markup/code.rst
index 299ab0bc0..6b2fbd023 100644
--- a/doc/markup/code.rst
+++ b/doc/markup/code.rst
@@ -30,7 +30,10 @@ installed) and handled in a smart way:
config value.
* Within Python highlighting mode, interactive sessions are recognized
- automatically and highlighted appropriately.
+ automatically and highlighted appropriately. Normal Python code is only
+ highlighted if it is parseable (so you can use Python as the default, but
+ interspersed snippets of shell commands or other code blocks will not be
+ highlighted as Python).
* The highlighting language can be changed using the ``highlight`` directive,
used as follows::