From fae2c3538ecbcdd37b6eca891c0815d2093c39e3 Mon Sep 17 00:00:00 2001 From: wohlganger Date: Tue, 27 Jun 2017 21:36:23 -0500 Subject: 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. --- Lib/idlelib/configdialog.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Lib/idlelib/configdialog.py') diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py index 96682a9221..4a25846238 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). +''' } -- cgit v1.2.1