@@ -158,7 +158,7 @@ Go to Line
158158
159159Show Completions
160160 Open a scrollable list allowing selection of existing names. See
161- :ref: `Completions <completions >` in the Editing and navigation section below.
161+ :ref: `Completions <completions >` in the Editing and Navigation section below.
162162
163163Expand Word
164164 Expand a prefix you have typed to match a full word in the same window;
@@ -167,7 +167,7 @@ Expand Word
167167Show Call Tip
168168 After an unclosed parenthesis for a function, open a small window with
169169 function parameter hints. See :ref: `Calltips <calltips >` in the
170- Editing and navigation section below.
170+ Editing and Navigation section below.
171171
172172Show Surrounding Parens
173173 Highlight the surrounding parenthesis.
@@ -178,14 +178,9 @@ Format menu (Editor window only)
178178^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
179179
180180Format Paragraph
181- Rewrap the current 'paragraph'. A paragraph is a contiguous block of
182- equally indented non-blank comments containing the text cursor, a
183- similar block of non-comment lines (expected to be within a multiline
184- string), or a selection of a subset of either. (Partial lines in a
185- selection expand to complete lines.) The resulting lines have the
186- same indent as before but a max length of N columns (characters).
187- Change the default N of 72 on the Window tab of IDLE Settings.
188- Avoid rewrapping code lines.
181+ Rewrap the text block containing the text insert cursor.
182+ Avoid code lines. See :ref: `Format Menu<format-menu> ` in the
183+ Editing and Navigation section below.
189184
190185Indent Region
191186 Shift selected lines right by the indent width (default 4 spaces).
@@ -571,6 +566,20 @@ In an editor, import statements have no effect until one runs the file.
571566One might want to run a file after writing import statements, after
572567adding function definitions, or after opening an existing file.
573568
569+ .. _format-menu :
570+
571+ Format Menu
572+ ^^^^^^^^^^^
573+
574+ Reformat Paragraph rewraps a block ('paragraph') of contiguous equally
575+ indented non-blank comments, a similar block of text within a multiline
576+ string, or a selected subset of either.
577+ If needed, add a blank line to separate string from code.
578+ Partial lines in a selection expand to complete lines.
579+ The resulting lines have the same indent as before
580+ but have maximum total length of N columns (characters).
581+ Change the default N of 72 on the Window tab of IDLE Settings.
582+
574583.. _code-context :
575584
576585Code Context
0 commit comments