diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-04-26 20:42:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 20:42:05 -0700 |
commit | 5d90954856cc1d999dd5d153b807055fde0d53ea (patch) | |
tree | 285d60c0b3b1468d079ed9982fe4226d8574901d /Doc | |
parent | d111490a1f63db2dcc3714157726dc6a5c0fa1cd (diff) | |
download | cpython-git-5d90954856cc1d999dd5d153b807055fde0d53ea.tar.gz |
Syntax highlight IDLE html doc code example. (GH-12981)
The new markup is currently ignored by IDLE's tk doc display.
(cherry picked from commit 55d035113dfb1bd90495c8571758f504ae8d4802)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Doc')
-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 11e137bf10..ad44911283 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) |