diff options
author | Thomas <thmsdnnr@gmail.com> | 2021-10-21 10:19:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 10:19:20 (GMT) |
commit | 5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c (patch) | |
tree | 29a467a6307e165a704b501c7651bf6155aaa5c7 | |
parent | a53456e587c2e935e7e77170d57960e8c80d8a4d (diff) | |
download | cpython-5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c.zip cpython-5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c.tar.gz cpython-5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c.tar.bz2 |
bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105)
-rw-r--r-- | Doc/tutorial/introduction.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 8763626..33678f5 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -11,6 +11,13 @@ with a prompt are output from the interpreter. Note that a secondary prompt on a line by itself in an example means you must type a blank line; this is used to end a multi-line command. +.. only:: html + + You can toggle the display of prompts and output by clicking on ``>>>`` + in the upper-right corner of an example box. If you hide the prompts + and output for an example, then you can easily copy and paste the input + lines into your interpreter. + .. index:: single: # (hash); comment Many of the examples in this manual, even those entered at the interactive |