mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
1. Make builtin foreground Royal Purple instead of Barney Purple.
2. Touch up help.txt M config-highlight.def M help.txt
This commit is contained in:
parent
9d5c44307a
commit
6e4620bfb1
2 changed files with 32 additions and 27 deletions
|
@ -6,7 +6,7 @@ normal-foreground= #000000
|
||||||
normal-background= #ffffff
|
normal-background= #ffffff
|
||||||
keyword-foreground= #ff7700
|
keyword-foreground= #ff7700
|
||||||
keyword-background= #ffffff
|
keyword-background= #ffffff
|
||||||
builtin-foreground= #ca00ca
|
builtin-foreground= #900090
|
||||||
builtin-background= #ffffff
|
builtin-background= #ffffff
|
||||||
comment-foreground= #dd0000
|
comment-foreground= #dd0000
|
||||||
comment-background= #ffffff
|
comment-background= #ffffff
|
||||||
|
@ -22,7 +22,7 @@ hit-foreground= #ffffff
|
||||||
hit-background= #000000
|
hit-background= #000000
|
||||||
error-foreground= #000000
|
error-foreground= #000000
|
||||||
error-background= #ff7777
|
error-background= #ff7777
|
||||||
#cursor (only foreground can be set)
|
#cursor (only foreground can be set, restart IDLE)
|
||||||
cursor-foreground= black
|
cursor-foreground= black
|
||||||
#shell window
|
#shell window
|
||||||
stdout-foreground= blue
|
stdout-foreground= blue
|
||||||
|
@ -37,7 +37,7 @@ normal-foreground= #000000
|
||||||
normal-background= #ffffff
|
normal-background= #ffffff
|
||||||
keyword-foreground= #ff7700
|
keyword-foreground= #ff7700
|
||||||
keyword-background= #ffffff
|
keyword-background= #ffffff
|
||||||
builtin-foreground= #ca00ca
|
builtin-foreground= #900090
|
||||||
builtin-background= #ffffff
|
builtin-background= #ffffff
|
||||||
comment-foreground= #dd0000
|
comment-foreground= #dd0000
|
||||||
comment-background= #ffffff
|
comment-background= #ffffff
|
||||||
|
@ -53,7 +53,7 @@ hit-foreground= #ffffff
|
||||||
hit-background= #000000
|
hit-background= #000000
|
||||||
error-foreground= #000000
|
error-foreground= #000000
|
||||||
error-background= #ff7777
|
error-background= #ff7777
|
||||||
#cursor (only foreground can be set)
|
#cursor (only foreground can be set, restart IDLE)
|
||||||
cursor-foreground= black
|
cursor-foreground= black
|
||||||
#shell window
|
#shell window
|
||||||
stdout-foreground= blue
|
stdout-foreground= blue
|
||||||
|
|
|
@ -55,6 +55,7 @@ Format Menu (only in Edit window):
|
||||||
Comment Out Region -- Insert ## in front of selected lines
|
Comment Out Region -- Insert ## in front of selected lines
|
||||||
Uncomment Region -- Remove leading # or ## from selected lines
|
Uncomment Region -- Remove leading # or ## from selected lines
|
||||||
Tabify Region -- Turns *leading* stretches of spaces into tabs
|
Tabify Region -- Turns *leading* stretches of spaces into tabs
|
||||||
|
(Note: We recommend using 4 space blocks to indent Python code.)
|
||||||
Untabify Region -- Turn *all* tabs into the right number of spaces
|
Untabify Region -- Turn *all* tabs into the right number of spaces
|
||||||
New Indent Width... -- Open dialog to change indent width
|
New Indent Width... -- Open dialog to change indent width
|
||||||
Format Paragraph -- Reformat the current blank-line-separated
|
Format Paragraph -- Reformat the current blank-line-separated
|
||||||
|
@ -117,9 +118,9 @@ Help Menu:
|
||||||
|
|
||||||
Additional Help Sources:
|
Additional Help Sources:
|
||||||
|
|
||||||
Windows users can Google on pythlp.chm and zopeshelf.chm to access help
|
Windows users can Google on zopeshelf.chm to access Zope help files in
|
||||||
files in the Windows help format. The Additional Help Sources feature
|
the Windows help format. The Additional Help Sources feature of the
|
||||||
of the configuration GUI supports .chm, along with any other filetypes
|
configuration GUI supports .chm, along with any other filetypes
|
||||||
supported by your browser. Supply a Menu Item title, and enter the
|
supported by your browser. Supply a Menu Item title, and enter the
|
||||||
location in the Help File Path slot of the New Help Source dialog. Use
|
location in the Help File Path slot of the New Help Source dialog. Use
|
||||||
http:// and/or www. to identify external URLs, or download the file and
|
http:// and/or www. to identify external URLs, or download the file and
|
||||||
|
@ -131,48 +132,52 @@ Additional Help Sources:
|
||||||
|
|
||||||
Basic editing and navigation:
|
Basic editing and navigation:
|
||||||
|
|
||||||
Backspace deletes to the left; DEL deletes to the right
|
Backspace deletes to the left; DEL deletes to the right.
|
||||||
Arrow keys and Page Up/Down to move around
|
Arrow keys and Page Up/Down move around.
|
||||||
Home/End go to begin/end of line
|
Control-left/right Arrow moves by words in a strange but useful way.
|
||||||
Control-Home/End go to begin/end of file
|
Home/End go to begin/end of line.
|
||||||
Some Emacs or standard Windows bindings may work.
|
Control-Home/End go to begin/end of file.
|
||||||
|
Some useful Emacs bindings (Control-a, Control-e, Control-k, etc.)
|
||||||
|
are inherited from Tcl/Tk.
|
||||||
|
Standard Windows bindings may work on that platform.
|
||||||
Keybindings are selected in the Settings Dialog, look there.
|
Keybindings are selected in the Settings Dialog, look there.
|
||||||
|
|
||||||
Automatic indentation:
|
Automatic indentation:
|
||||||
|
|
||||||
After a block-opening statement, the next line is indented by
|
After a block-opening statement, the next line is indented by 4 spaces
|
||||||
4 spaces (in the Python Shell window by one tab). After
|
(in the Python Shell window by one tab). After certain keywords
|
||||||
certain keywords (break, return etc.) the next line is
|
(break, return etc.) the next line is dedented. In leading
|
||||||
dedented. In leading indentation, Backspace deletes up to 4
|
indentation, Backspace deletes up to 4 spaces if they are there. Tab
|
||||||
spaces if they are there. Tab inserts spaces (in the
|
inserts spaces (in the Python Shell window one tab), number depends on
|
||||||
Python Shell window one tab), number depends on Indent Width.
|
Indent Width. (N.B. Currently tabs are restricted to four spaces due
|
||||||
(N.B. Currently tabs are restricted to four spaces due to Tcl/Tk
|
to Tcl/Tk issues.)
|
||||||
issues.)
|
|
||||||
|
|
||||||
See also the indent/dedent region commands in the edit menu.
|
See also the indent/dedent region commands in the edit menu.
|
||||||
|
|
||||||
Python Shell window:
|
Python Shell window:
|
||||||
|
|
||||||
Control-c interrupts executing command
|
Control-c interrupts executing command.
|
||||||
Control-d sends end-of-file; closes window if typed at >>> prompt
|
Control-d sends end-of-file; closes window if typed at >>> prompt
|
||||||
|
(this is Control-z on Windows).
|
||||||
|
|
||||||
Command history:
|
Command history:
|
||||||
|
|
||||||
Alt-p retrieves previous command matching what you have typed
|
Alt-p retrieves previous command matching what you have typed.
|
||||||
Alt-n retrieves next
|
Alt-n retrieves next.
|
||||||
(These are Control-p, Control-n on the Mac)
|
(These are Control-p, Control-n on the Mac)
|
||||||
Return while cursor is on a previous command retrieves that command
|
Return while cursor is on a previous command retrieves that command.
|
||||||
Expand word is also useful to reduce typing
|
Expand word is also useful to reduce typing.
|
||||||
|
|
||||||
Syntax colors:
|
Syntax colors:
|
||||||
|
|
||||||
The coloring is applied in a background "thread", so you may
|
The coloring is applied in a background "thread", so you may
|
||||||
occasionally see uncolorized text. To change the color
|
occasionally see uncolorized text. To change the color
|
||||||
scheme, use the Settings/Highlighting dialog.
|
scheme, use the Configure IDLE / Highlighting dialog.
|
||||||
|
|
||||||
Python default syntax colors:
|
Python default syntax colors:
|
||||||
|
|
||||||
Keywords orange
|
Keywords orange
|
||||||
|
Builtins royal purple
|
||||||
Strings green
|
Strings green
|
||||||
Comments red
|
Comments red
|
||||||
Definitions blue
|
Definitions blue
|
||||||
|
@ -181,7 +186,7 @@ Python Shell window:
|
||||||
|
|
||||||
Console output brown
|
Console output brown
|
||||||
stdout blue
|
stdout blue
|
||||||
stderr dark green
|
stderr red
|
||||||
stdin black
|
stdin black
|
||||||
|
|
||||||
Other preferences:
|
Other preferences:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue