summaryrefslogtreecommitdiffstats
path: root/Doc/library/idle.rst
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2019-04-27 03:22:36 (GMT)
committerGitHub <noreply@github.com>2019-04-27 03:22:36 (GMT)
commit55d035113dfb1bd90495c8571758f504ae8d4802 (patch)
tree587be6e2f8d6849cac078ac2a60c642f16d98050 /Doc/library/idle.rst
parent6d13e5b35ba7165db3f38fccdd6e1e5283f96a74 (diff)
downloadcpython-55d035113dfb1bd90495c8571758f504ae8d4802.zip
cpython-55d035113dfb1bd90495c8571758f504ae8d4802.tar.gz
cpython-55d035113dfb1bd90495c8571758f504ae8d4802.tar.bz2
Syntax highlight IDLE html doc code example. (GH-12981)
The new markup is currently ignored by IDLE's tk doc display.
Diffstat (limited to 'Doc/library/idle.rst')
-rw-r--r--Doc/library/idle.rst6
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/library/idle.rst b/Doc/library/idle.rst
index 11e137b..ad44911 100644
--- a/Doc/library/idle.rst
+++ b/Doc/library/idle.rst
@@ -724,11 +724,9 @@ to begin after the next tab stop. (They occur every 8 'characters'). Newline
characters cause following text to appear on a new line. Other control
characters are ignored or displayed as a space, box, or something else,
depending on the operating system and font. (Moving the text cursor through
-such output with arrow keys may exhibit some surprising spacing behavior.)
+such output with arrow keys may exhibit some surprising spacing behavior.) ::
-.. code-block:: none
-
- >>> s = 'a\tb\a<\x02><\r>\bc\nd'
+ >>> s = 'a\tb\a<\x02><\r>\bc\nd' # Enter 22 chars.
>>> len(s)
14
>>> s # Display repr(s)