Python Idle Background theme

Source: Internet
Author: User

Believe that just into the path of Python learning, are still quite like the python comes with the idle, but the white Code background color and other code color really let people look a bit uncomfortable, so at that time also thought can give it to change color, this of course, nonsense not to say, direct cut into the topic:

It's mine, let's finish reading and set your favorite colors.

1.The first thing to do is to find this file named Config-highlight.cfg, which has the following location:

Under the Linux series system, the path is (~ = user directory):
~/.idlerc/

Under Windows XP, the path is:
C:\Documents and settings\< user name >.idlerc\

Under Windows 7, the path is:
c:\users\< User name >.idlerc\

For Windows, you can either open the run directly or enter the following path confirmation in the Address bar:
%userprofile%.idlerc\

Find this name config-highlight.cfg file after the next need to edit it, some may not find this file, then we create a new innovation named Config-highlight.cfg file.

2.After creating the file, add the following code (the same color as I did above; people like to use it directly, do not like to adjust their own):
[Obsidian]definition-foreground =#ff8080error-foreground =#FF0000String-background =#494949keyword-foreground =#e1031enormal-foreground =#5ca404comment-background =#293134hit-foreground =#E0E2E4builtin-background =#293134stdout-foreground =#678CB1cursor-foreground =#E0E2E4Break-background =#293134comment-foreground =#5ae100hilite-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 [Tango]definition-foreground =#ff0000error-foreground =#fa8072String-background =#2e3436keyword-foreground =#f8a80dnormal-foreground =#ffff00comment-background =#2f2f2fhit-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             
3.after creating and adding code finished, not finished, now we go to idle to select our theme, if you have opened Python idle, save the file after restarting idle, open and then select the menu options–configure idle ...
    选择Highlighting选项卡,然后Select选择a Custom Theme,如所示,选择刚才配置的两个主题之一,我这里选择tango。

(Need to configure the color of See 5)

4.After completing the configuration click Apply or OK to see the effect, there is a fonts/tabs tab next to the Highlighting tab that you can use to configure the font and indent width. 5.need to configure their own color to continue to see, direct, easy to understand:

Original Transmission Door

Python Idle Background theme

Related Article

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.