summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-10-21 05:42:10 -0700
committerGitHub <noreply@github.com>2021-10-21 14:42:10 +0200
commitbfa4237ecfa605ff94e86fa7141f4a8b1f7cc44a (patch)
tree19a4556607761beede76f1a4734990efbef28340
parent9733c9651afad84ab2f010e9e68b7c03976ea9f3 (diff)
downloadcpython-git-bfa4237ecfa605ff94e86fa7141f4a8b1f7cc44a.tar.gz
bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) (GH-29120)
(cherry picked from commit 5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c) Co-authored-by: Thomas <thmsdnnr@gmail.com>
-rw-r--r--Doc/tutorial/introduction.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
index 8763626ef5..33678f5a64 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