Kurt B. Kaiser | 282f122 | 2003-05-18 02:21:55 +0000 | [diff] [blame] | 1 | # IDLE reads several config files to determine user preferences. This |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 2 | # file is the default config file for general idle settings. |
Kurt B. Kaiser | 282f122 | 2003-05-18 02:21:55 +0000 | [diff] [blame] | 3 | # |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 4 | # When IDLE starts, it will look in |
| 5 | # the following two sets of files, in order: |
| 6 | # |
Terry Jan Reedy | f46b782 | 2016-11-07 17:15:01 -0500 | [diff] [blame] | 7 | # default configuration files in idlelib |
| 8 | # -------------------------------------- |
| 9 | # config-main.def default general config file |
| 10 | # config-extensions.def default extension config file |
| 11 | # config-highlight.def default highlighting config file |
| 12 | # config-keys.def default keybinding config file |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 13 | # |
Terry Jan Reedy | f46b782 | 2016-11-07 17:15:01 -0500 | [diff] [blame] | 14 | # user configuration files in ~/.idlerc |
| 15 | # ------------------------------------- |
| 16 | # config-main.cfg user general config file |
| 17 | # config-extensions.cfg user extension config file |
| 18 | # config-highlight.cfg user highlighting config file |
| 19 | # config-keys.cfg user keybinding config file |
Kurt B. Kaiser | 3f42a6d | 2003-08-09 01:51:28 +0000 | [diff] [blame] | 20 | # |
Terry Jan Reedy | f46b782 | 2016-11-07 17:15:01 -0500 | [diff] [blame] | 21 | # On Windows, the default location of the home directory ('~' above) |
| 22 | # depends on the version. For Windows 10, it is C:\Users\<username>. |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 23 | # |
| 24 | # Any options the user saves through the config dialog will be saved to |
Terry Jan Reedy | f46b782 | 2016-11-07 17:15:01 -0500 | [diff] [blame] | 25 | # the relevant user config file. Reverting any general or extension |
| 26 | # setting to the default causes that entry to be wiped from the user |
| 27 | # file and re-read from the default file. This rule applies to each |
| 28 | # item, except that the three editor font items are saved as a group. |
Kurt B. Kaiser | 8e92bf7 | 2003-01-14 22:03:31 +0000 | [diff] [blame] | 29 | # |
Terry Jan Reedy | f46b782 | 2016-11-07 17:15:01 -0500 | [diff] [blame] | 30 | # User highlighting themes and keybinding sets must have (section) names |
| 31 | # distinct from the default names. All items are added and saved as a |
| 32 | # group. They are retained unless specifically deleted within the config |
| 33 | # dialog. Choosing one of the default themes or keysets just applies the |
| 34 | # relevant settings from the default file. |
| 35 | # |
| 36 | # Additional help sources are listed in the [HelpFiles] section below |
| 37 | # and should be viewable by a web browser (or the Windows Help viewer in |
| 38 | # the case of .chm files). These sources will be listed on the Help |
| 39 | # menu. The pattern, and two examples, are |
| 40 | # |
Kurt B. Kaiser | 282f122 | 2003-05-18 02:21:55 +0000 | [diff] [blame] | 41 | # <sequence_number = menu item;/path/to/help/source> |
Terry Jan Reedy | f46b782 | 2016-11-07 17:15:01 -0500 | [diff] [blame] | 42 | # 1 = IDLE;C:/Programs/Python36/Lib/idlelib/help.html |
| 43 | # 2 = Pillow;https://pillow.readthedocs.io/en/latest/ |
Kurt B. Kaiser | 8e92bf7 | 2003-01-14 22:03:31 +0000 | [diff] [blame] | 44 | # |
Terry Jan Reedy | f46b782 | 2016-11-07 17:15:01 -0500 | [diff] [blame] | 45 | # You can't use a semi-colon in a menu item or path. The path will be |
| 46 | # platform specific because of path separators, drive specs etc. |
| 47 | # |
| 48 | # The default files should not be edited except to add new sections to |
| 49 | # config-extensions.def for added extensions . The user files should be |
| 50 | # modified through the Settings dialog. |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 51 | |
| 52 | [General] |
Kurt B. Kaiser | 8e92bf7 | 2003-01-14 22:03:31 +0000 | [diff] [blame] | 53 | editor-on-startup= 0 |
Kurt B. Kaiser | 6c638b6 | 2003-05-26 06:23:10 +0000 | [diff] [blame] | 54 | autosave= 0 |
Ćukasz Langa | 41c1910 | 2011-06-07 15:19:44 +0200 | [diff] [blame] | 55 | print-command-posix=lpr %%s |
| 56 | print-command-win=start /min notepad /p %%s |
Kurt B. Kaiser | 6c8579e | 2003-06-01 01:08:32 +0000 | [diff] [blame] | 57 | delete-exitfunc= 1 |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 58 | |
| 59 | [EditorWindow] |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 60 | width= 80 |
Kurt B. Kaiser | 0539169 | 2003-05-26 20:35:53 +0000 | [diff] [blame] | 61 | height= 40 |
Terry Jan Reedy | d87d168 | 2015-08-01 18:57:33 -0400 | [diff] [blame] | 62 | font= TkFixedFont |
Terry Jan Reedy | 0180cf6 | 2016-11-07 23:14:53 -0500 | [diff] [blame] | 63 | # For TkFixedFont, the actual size and boldness are obtained from tk |
| 64 | # and override 10 and 0. See idlelib.config.IdleConf.GetFont |
Kurt B. Kaiser | 0539169 | 2003-05-26 20:35:53 +0000 | [diff] [blame] | 65 | font-size= 10 |
Steven M. Gava | c112cd8 | 2002-01-22 05:56:40 +0000 | [diff] [blame] | 66 | font-bold= 0 |
Kurt B. Kaiser | 6c638b6 | 2003-05-26 06:23:10 +0000 | [diff] [blame] | 67 | encoding= none |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 68 | |
| 69 | [Indent] |
| 70 | use-spaces= 1 |
| 71 | num-spaces= 4 |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 72 | |
| 73 | [Theme] |
Kurt B. Kaiser | 282f122 | 2003-05-18 02:21:55 +0000 | [diff] [blame] | 74 | default= 1 |
Steven M. Gava | ad4f532 | 2002-01-03 12:05:17 +0000 | [diff] [blame] | 75 | name= IDLE Classic |
Terry Jan Reedy | d0c0f00 | 2015-11-12 15:02:57 -0500 | [diff] [blame] | 76 | name2= |
| 77 | # name2 set in user config-main.cfg for themes added after 2015 Oct 1 |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 78 | |
| 79 | [Keys] |
Kurt B. Kaiser | 282f122 | 2003-05-18 02:21:55 +0000 | [diff] [blame] | 80 | default= 1 |
Terry Jan Reedy | 9bdb1ed | 2016-07-10 13:46:34 -0400 | [diff] [blame] | 81 | name= |
| 82 | name2= |
| 83 | # name2 set in user config-main.cfg for keys added after 2016 July 1 |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 84 | |
Kurt B. Kaiser | 0676dfd | 2005-02-03 01:37:14 +0000 | [diff] [blame] | 85 | [History] |
| 86 | cyclic=1 |
| 87 | |
Steven M. Gava | 085eb1b | 2002-02-05 04:52:32 +0000 | [diff] [blame] | 88 | [HelpFiles] |