Python background color and syntax highlighted topic Configuration
Anyone using python idle may not be able to tolerate the default white background and its syntax highlighting themes.
You are more inclined to use black backgrounds.
The following describes three theme configurations: Obsidian, Desert, and Tango.
Create a new config-highlight.cfg file under the. idlerc directory in the user directory and add the following content
[tango]definition-foreground = #fce94ferror-foreground = #fa8072string-background = #2e3436keyword-foreground = #8cc4ffnormal-foreground = #ffffffcomment-background = #2e3436hit-foreground = #ffffffbreak-foreground = #000000builtin-background = #2e3436stdout-foreground = #eeeeeccursor-foreground = #fce94fhit-background = #2e3436comment-foreground = #73d216hilite-background = #edd400definition-background = #2e3436stderr-background = #2e3436break-background = #2e3436console-foreground = #87ceebnormal-background = #2e3436builtin-foreground = #ad7fa8stdout-background = #2e3436console-background = #2e3436stderr-foreground = #ff3e40keyword-background = #2e3436string-foreground = #e9b96ehilite-foreground = #2e3436error-background = #2e3436[desert]definition-foreground = #98fb98error-foreground = #ff0000string-background = #333333keyword-foreground = #cc6600normal-foreground = #f0e68ccomment-background = #333333hit-foreground = #ffffffbreak-foreground = blackbuiltin-background = #333333stdout-foreground = #eeeeeecursor-foreground = #ffcc00hit-background = #333333comment-foreground = #87ceebhilite-background = graydefinition-background = #333333stderr-background = #333333break-background = #ffff55console-foreground = #87ceebnormal-background = #333333builtin-foreground = #519e51stdout-background = #333333console-background = #333333stderr-foreground = #ff3e40keyword-background = #333333string-foreground = #ffa0a0hilite-foreground = #000000error-background = #000000[Obsidian]definition-foreground = #678CB1error-foreground = #FF0000string-background = #293134keyword-foreground = #93C763normal-foreground = #E0E2E4comment-background = #293134hit-foreground = #E0E2E4builtin-background = #293134stdout-foreground = #678CB1cursor-foreground = #E0E2E4break-background = #293134comment-foreground = #66747Bhilite-background = #2F393Chilite-foreground = #E0E2E4definition-background = #293134stderr-background = #293134hit-background = #000000console-foreground = #E0E2E4normal-background = #293134builtin-foreground = #E0E2E4stdout-background = #293134console-background = #293134stderr-foreground = #FB0000keyword-background = #293134string-foreground = #EC7600break-foreground = #E0E2E4error-background = #293134
Restart IDLE and choose Options> Configure IDLE> Highlighting