Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions Doc/library/idle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,14 @@ Format menu (Editor window only)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Format Paragraph
Reformat the current blank-line-delimited paragraph in comment block or
multiline string or selected line in a string. All lines in the
paragraph will be formatted to less than N columns, where N defaults to 72.
Rewrap the current 'paragraph'. A paragraph is a contiguous block of
equally indented non-blank comments containing the text cursor, a
similar block of non-comment lines (expected to be within a multiline
string), or a selection of a subset of either. (Partial lines in a
selection expand to complete lines.) The resulting lines have the
same indent as before but a max length of N columns (characters).
Change the default N of 72 on the Window tab of IDLE Settings.
Avoid rewrapping code lines.

Indent Region
Shift selected lines right by the indent width (default 4 spaces).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Better explain the operation of Format / Format Paragraph.
Loading