-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Idle doc: redo Syntax Colors section #69412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I plan to make the following changes to the Syntax colors section:
|
Current: 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 Strings Comments Definitions Shell colors: Console output stdout stderr stdin |
Possible alternative, with additions and corrections: 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 Shell colors: Console output: brown Other colors: |
The alternative above matches the format of help.txt, except that the latter has the colors lined up. The excessive addition of whitespace here was an argument against replacing help.txt with help.html (bpo-16893). I consider the proposed condensation to be most of a fix of a regression. This sentence, "To change the color scheme, edit the [Colors] section in config.txt.", is strange in that it for help.txt, it was changed in 2002-12-11 to refer to the Highlights tab of the Configure dialog. In any case, the color list was added before that tab, but not seems not necessary. As a 'repeat', it is subject to obsolescence if not updated, which it has not been. So I think we should either drop the section or drop the colors and replace with a better description of what is being replaced. 2.4. Text and Syntax colors Text is both editor and shell windows get color coded. The coloring is applied in the background, so you may occasionally see uncolor text. To change the color scheme, use the Configure IDLE dialog, Highlighting tab. Colors can be set for the follow types of text. Python syntax in both editor and shell: normal code, keywords, builtin class and function names, user-defined class and function names, strings, and comments. Shell output: console output, console error text, user output, and user error output and tracebacks. Other text: cursor, selected text, and text found by search. Debugger breakpoint lines in the editor are indicated by a dark yellow background (not configurable). Note: I believe the marking of found text is OS dependent and know that it is the subject of discussion in other issues, so this part needs elaboration. |
I'd suggest that there is no reason to include the list of what elements can be coloured, as it's there in the dialog for anyone who wants to muck with it. Just the first paragraph (two sentences) would be sufficient I think. Even dropping it from the document entirely wouldn't be a bad thing. |
New changeset 2f6aa20c05b3 by Terry Jan Reedy in branch '2.7': New changeset f5502ff7ae2d by Terry Jan Reedy in branch '3.4': |
New changeset 36095aa6dd5e by Terry Jan Reedy in branch '2.7': New changeset a43d79b2434c by Terry Jan Reedy in branch '3.4': |
I decided to keep a further condensed subsection. I think there is a bit of extra info, and we may need or want to say more after other changes, such as for bpo-7949, and the addition of a dark theme. The reference manual documents our current promises. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: