Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-143774 - Improve IDLE Format Paragraph doc #143775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
terryjreedy wants to merge 2 commits into python:main
base: main
Choose a base branch
Loading
from terryjreedy:reformat
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
View file Open in desktop
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
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Better explain the operation of Format / Format Paragraph.
Loading

AltStyle によって変換されたページ (->オリジナル) /