diff --git a/Lib/idlelib/help.html b/Lib/idlelib/help.html index e026f112559..053828fc143 100644 --- a/Lib/idlelib/help.html +++ b/Lib/idlelib/help.html @@ -439,41 +439,22 @@ OS X use C-p. +
+

25.5.2.4. Text colors

+

Idle defaults to black on white text, but colors text with special meanings. +For the shell, these are shell output, shell error, user output, and +user error. For Python code, at the shell prompt or in an editor, these are +keywords, builtin class and function names, names following class and +def, strings, and comments. For any text window, these are the cursor (when +present), found text (when possible), and selected text.

+

Text coloring is done in the background, so uncolorized text is occasionally +visible. To change the color scheme, use the Configure IDLE dialog +Highlighting tab. The marking of debugger breakpoint lines in the editor and +text in popups and dialogs is not user-configurable.

-
-

25.5.3. Syntax colors

-

The coloring is applied in a background “thread,” so you may occasionally see -uncolorized text. To change the color scheme, edit the [Colors] section in -config.txt.

-
-
Python syntax colors:
-
-
Keywords
-
orange
-
Strings
-
green
-
Comments
-
red
-
Definitions
-
blue
-
-
-
Shell colors:
-
-
Console output
-
brown
-
stdout
-
blue
-
stderr
-
dark green
-
stdin
-
black
-
-
-
-

25.5.4. Startup and code execution

+

25.5.3. Startup and code execution

Upon startup with the -s option, IDLE will execute the file referenced by the environment variables IDLESTARTUP or PYTHONSTARTUP. IDLE first checks for IDLESTARTUP; if IDLESTARTUP is present the file @@ -487,7 +468,7 @@ looked for in the user’s home directory. Statements in this file will be executed in the Tk namespace, so this file is not useful for importing functions to be used from IDLE’s Python shell.

-

25.5.4.1. Command line usage

+

25.5.3.1. Command line usage

idle.py [-c command] [-d] [-e] [-h] [-i] [-r file] [-s] [-t title] [-] [arg] ...
 
 -c command  run command in the shell window
@@ -512,7 +493,7 @@ set in the Options dialog.
 
 
-

25.5.4.2. IDLE-console differences

+

25.5.3.2. IDLE-console differences

As much as possible, the result of executing Python code with IDLE is the same as executing the same code in a console window. However, the different interface and operation occasionally affects results.

@@ -526,7 +507,7 @@ Also, functions that directly access the keyboard and screen will not work.

Some consoles only work with a single physical line at a time.

-

25.5.4.3. Running without a subprocess

+

25.5.3.3. Running without a subprocess

By default, IDLE executes user code in a separate subprocess via a socket, which uses the internal loopback interface. This connection is not externally visible and no data is sent to or received from the Internet. @@ -552,9 +533,9 @@ with the default subprocess if at all possible.

-

25.5.5. Help and preferences

+

25.5.4. Help and preferences

-

25.5.5.1. Additional help sources

+

25.5.4.1. Additional help sources

IDLE includes a help menu entry called “Python Docs” that will open the extensive sources of help, including tutorials, available at docs.python.org. Selected URLs can be added or removed from the help menu at any time using the @@ -562,14 +543,14 @@ Configure IDLE dialog. See the IDLE help option in the help menu of IDLE for more information.

-

25.5.5.2. Setting preferences

+

25.5.4.2. Setting preferences

The font preferences, highlighting, keys, and general preferences can be changed via Configure IDLE on the Option menu. Keys can be user defined; IDLE ships with four built in key sets. In addition a user can create a custom key set in the Configure IDLE dialog under the keys tab.