diff options
author | wohlganger <charles.wohlganger@gmail.com> | 2017-06-28 02:36:23 (GMT) |
---|---|---|
committer | terryjreedy <tjreedy@udel.edu> | 2017-06-28 02:36:23 (GMT) |
commit | fae2c3538ecbcdd37b6eca891c0815d2093c39e3 (patch) | |
tree | 020cc2337e161624e52fccaf0765cb17838566c6 /Lib/idlelib/configdialog.py | |
parent | 84d9d14a1fa395fbd21262ba195490be25a7b3bc (diff) | |
download | cpython-fae2c3538ecbcdd37b6eca891c0815d2093c39e3.zip cpython-fae2c3538ecbcdd37b6eca891c0815d2093c39e3.tar.gz cpython-fae2c3538ecbcdd37b6eca891c0815d2093c39e3.tar.bz2 |
bpo-30723: IDLE -- Enhance parenmatch; add style, flash, and help (#2306)
* Add 'parens' style to highlight both opener and closer.
* Make 'default' style, which is not default, a synonym for 'opener'.
* Make time-delay work the same with all styles.
* Add help for config dialog extensions tab, including parenmatch.
* Add new tests.
Original patch by Charles Wohlganger.
Diffstat (limited to 'Lib/idlelib/configdialog.py')
-rw-r--r-- | Lib/idlelib/configdialog.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py index 96682a9..4a25846 100644 --- a/Lib/idlelib/configdialog.py +++ b/Lib/idlelib/configdialog.py @@ -1407,6 +1407,21 @@ The IDLE Modern Unix key set is new in June 2016. It can only be used with older IDLE releases if it is saved as a custom key set, with a different name. ''', + 'Extensions': ''' +Extensions: + +Autocomplete: Popupwait is milleseconds to wait after key char, without +cursor movement, before popping up completion box. Key char is '.' after +identifier or a '/' (or '\\' on Windows) within a string. + +FormatParagraph: Max-width is max chars in lines after re-formatting. +Use with paragraphs in both strings and comment blocks. + +ParenMatch: Style indicates what is highlighted when closer is entered: +'opener' - opener '({[' corresponding to closer; 'parens' - both chars; +'expression' (default) - also everything in between. Flash-delay is how +long to highlight if cursor is not moved (0 means forever). +''' } |