diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2019-04-27 03:22:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-27 03:22:36 (GMT) |
commit | 55d035113dfb1bd90495c8571758f504ae8d4802 (patch) | |
tree | 587be6e2f8d6849cac078ac2a60c642f16d98050 /Doc/library/idle.rst | |
parent | 6d13e5b35ba7165db3f38fccdd6e1e5283f96a74 (diff) | |
download | cpython-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.rst | 6 |
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) |