Python background color and syntax highlighted topic configuration

Source: Internet
Author: User
People who use pythonidle may not be able to tolerate the default white background and their syntax highlighting themes. You are more inclined to use black backgrounds. Next we will introduce the Obsidian, Desert, and Tango theme configurations. in the idlerc Directory of the user directory, create a new one named config-people using python idle may not be able to tolerate the default white background, and its syntax highlight topic.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.