python IDLE颜色设置

相信刚学习python的朋友们,都还是挺喜欢python自带的IDLE,但是白的代码背景色以及其它的代码色如何更改呢?

 Step1:找到config-Highlight.cfg文件,win在C:\Users\Administrator\.idlerc\目录下,没有的话在该目录下创建该文件

 Step2:编辑该文件

[Obsidian]

definition-foreground = #ff8080

error-foreground = #FF0000

string-background = #494949

keyword-foreground = #e1031e

normal-foreground = #5ca404

comment-background = #293134

hit-foreground = #E0E2E4

builtin-background = #293134

stdout-foreground = #678CB1

cursor-foreground = #E0E2E4

break-background = #293134

comment-foreground = #5ae100

hilite-background = #2F393C

hilite-foreground = #E0E2E4

definition-background = #293134

stderr-background = #293134

hit-background = #000000

console-foreground = #E0E2E4

normal-background = #293134

builtin-foreground = #E0E2E4

stdout-background = #293134

console-background = #293134

stderr-foreground = #FB0000

keyword-background = #293134

string-foreground = #EC7600

break-foreground = #E0E2E4

error-background = #293134

[tango]

definition-foreground = #ff0000

error-foreground = #fa8072

string-background = #2e3436

keyword-foreground = #f8a80d

normal-foreground = #ffff00

comment-background = #2f2f2f

hit-foreground = #ffffff

break-foreground = #000000

builtin-background = #2e3436

stdout-foreground = #eeeeec

cursor-foreground = #fce94f

hit-background = #2e3436

comment-foreground = #73d216

hilite-background = #edd400

definition-background = #2e3436

stderr-background = #2e3436

break-background = #2e3436

console-foreground = #87ceeb

normal-background = #2e3436

builtin-foreground = #ad7fa8

stdout-background = #2e3436

console-background = #2e3436

stderr-foreground = #ff3e40

keyword-background = #2e3436

string-foreground = #e9b96e

hilite-foreground = #2e3436

error-background = #2e3436
 

 Step3:重启Python IDLE,依次选择Options-Configure IDLE,在设置里点击Highlighting,然后选择a Custom Theme-tango,然后Apply即可

 

 Step4:需要自己配置颜色的

 本文参考:https://www.jianshu.com/p/0f5e76fd8fc2

posted @ 2018-09-26 10:36  1直在路上1  阅读(4609)  评论(0编辑  收藏  举报