使用方法:
打开C盘我的 C:\Documents and Settings\你的用户名\.idlerc 文件夹
里面会有一个 config-highlight.cfg 如果没有请自已创建一个
将下面的代码放到 config-highlight.cfg 里面,并重启IDLE
这下在IDLE的设置highlight项里面就有几个主题了
[blackboard]keyword-background = #0C1021definition-foreground = #D63A1Berror-foreground = #ff0000string-background = #0C1021keyword-foreground = #FBDE2Dhilite-foreground = #000000comment-background = #0C1021hit-foreground = #ffffffbuiltin-background = #0C1021stdout-foreground = #eeeeeecursor-foreground = #ffcc00break-background = #ffff55comment-foreground = #505050hilite-background = graydefinition-background = #0C1021stderr-background = #0C1021hit-background = #0C1021console-foreground = #87ceebnormal-background = #0C1021builtin-foreground = #fd9902stdout-background = #0C1021console-background = #0C1021stderr-foreground = #ff3e40normal-foreground = #F8F8F8string-foreground = #61CE3Cbreak-foreground = blackerror-background = #000000 [twilight]keyword-background = #141414definition-foreground = #c86428error-foreground = #ff0000string-background = #141414keyword-foreground = #c2964bhilite-foreground = #00ffffcomment-background = #141414hit-foreground = #ffffffbuiltin-background = #141414stdout-foreground = #eeeeeecursor-foreground = #ffcc00break-background = #ffff55comment-foreground = #524d53hilite-background = #0000a0definition-background = #141414stderr-background = #141414hit-background = #141414console-foreground = #87ceebnormal-background = #141414builtin-foreground = #ce3e24stdout-background = #141414console-background = #141414stderr-foreground = #ff3e40normal-foreground = #FFFFFFstring-foreground = #61CE3Cbreak-foreground = blackerror-background = #000000[desert]keyword-background = #333333definition-foreground = #98fb98error-foreground = #ff0000string-background = #333333keyword-foreground = #cc6600hilite-foreground = #000000comment-background = #333333hit-foreground = #ffffffbuiltin-background = #333333stdout-foreground = #eeeeeecursor-foreground = #ffcc00break-background = #ffff55comment-foreground = #87ceebhilite-background = graydefinition-background = #333333stderr-background = #333333hit-background = #333333console-foreground = #87ceebnormal-background = #333333builtin-foreground = #519e51stdout-background = #333333console-background = #333333stderr-foreground = #ff3e40normal-foreground = #f0e68cstring-foreground = #ffa0a0break-foreground = blackerror-background = #000000[cobalt]keyword-background = #001B33definition-foreground = #FFDD11error-foreground = #ff0000string-background = #001B33keyword-foreground = #FF7222hilite-foreground = #00ffffcomment-background = #001B33hit-foreground = #ffffffbuiltin-background = #001B33stdout-foreground = #eeeeeecursor-foreground = #ffcc00break-background = #ffff55comment-foreground = #007699hilite-background = #0000a0definition-background = #001B33stderr-background = #001B33hit-background = #001B33console-foreground = #87ceebnormal-background = #001B33builtin-foreground = #D40E36stdout-background = #001B33console-background = #001B33stderr-foreground = #ff3e40normal-foreground = #F8F8F8string-foreground = #61CE3Cbreak-foreground = blackerror-background = #000000