]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105)
authorThomas <thmsdnnr@gmail.com>
Thu, 21 Oct 2021 10:19:20 +0000 (03:19 -0700)
committerGitHub <noreply@github.com>
Thu, 21 Oct 2021 10:19:20 +0000 (12:19 +0200)
Doc/tutorial/introduction.rst

index 8763626ef553b987bf5d4b5f106ee25971d56166..33678f5a64b1f3876ce1e02b95584755c2b10679 100644 (file)
@@ -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