summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/config-extensions.def
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2004-04-24 03:08:13 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2004-04-24 03:08:13 (GMT)
commitd00587a2ed5b6de89ff6b2c01aac023a7fa3ab50 (patch)
treea531ce2ce342575e75090d21f2ba20f417de6720 /Lib/idlelib/config-extensions.def
parent610c7e07f3e41e1f4baf7303edc8124269c01250 (diff)
downloadcpython-d00587a2ed5b6de89ff6b2c01aac023a7fa3ab50.zip
cpython-d00587a2ed5b6de89ff6b2c01aac023a7fa3ab50.tar.gz
cpython-d00587a2ed5b6de89ff6b2c01aac023a7fa3ab50.tar.bz2
1. Add an Options menu entry: Code Context
2. Add a <<toggle-code-context>> envent to the [CodeContext] section of config-extensions.def and also a default-on variable, set to 0. 3. Update the help file to include Code Context. M CodeContext.py M config-extensions.def M help.txt
Diffstat (limited to 'Lib/idlelib/config-extensions.def')
-rw-r--r--Lib/idlelib/config-extensions.def18
1 files changed, 11 insertions, 7 deletions
diff --git a/Lib/idlelib/config-extensions.def b/Lib/idlelib/config-extensions.def
index 00162a0..39f9098 100644
--- a/Lib/idlelib/config-extensions.def
+++ b/Lib/idlelib/config-extensions.def
@@ -3,13 +3,14 @@
#
# Each extension must have at least one section, named after the extension
# module. This section must contain an 'enable' item (=1 to enable the
-# extension, =0 to disable it) and also contain any other general
-# configuration items for the extension. Each extension may also define up to
-# two optional sections named ExtensionName_bindings and
-# ExtensionName_cfgBindings. If present, ExtensionName_bindings defines virtual
-# event bindings for the extension that are not sensibly re-configurable. If
-# present, ExtensionName_cfgBindings defines virtual event bindings for the
-# extension that may be sensibly re-configured.
+# extension, =0 to disable it) and also contain any other general configuration
+# items for the extension. Each extension must define at least one section
+# named ExtensionName_bindings or ExtensionName_cfgBindings. If present,
+# ExtensionName_bindings defines virtual event bindings for the extension that
+# are not user re-configurable. If present, ExtensionName_cfgBindings
+# defines virtual event bindings for the extension that may be sensibly
+# re-configured. If there are no keybindings for a menus' virtual events,
+# include lines like <<toggle-code-context>>= (See [CodeContext], below.)
# Currently it is necessary to manually modify this file to change extension
# key bindings and default values. To customize, create
@@ -65,5 +66,8 @@ check-restore=<KeyPress>
[CodeContext]
enable=1
numlines=3
+default_on=0
bgcolor=LightGray
fgcolor=Black
+[CodeContext_bindings]
+toggle-code-context=