From: Thomas Date: Thu, 21 Oct 2021 10:19:20 +0000 (-0700) Subject: bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) X-Git-Tag: v3.11.0a2~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c;p=thirdparty%2FPython%2Fcpython.git bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) --- diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 8763626ef553..33678f5a64b1 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