问题描述
有人知道如何将python dracula方案置于闲置状态吗,我认为闲置状态需要使用rgb颜色,而我无法找到一种dracula。
解决方法
是的,Github上有一个Darcula主题文件。
安装:
- 确保IDLE已关闭
- 在您的主目录/用户/ python目录中的某个位置查找
.idlerc
或idlelib
文件夹 常见位置:C:\Users\.idlerc
-C:\Users\%user%\.idlerc
-Python\Lib\idlelib
-/home/.idlerc
- 编辑/创建
config-highlight.cfg
或config-highlight.def
文件并粘贴提供的配置- 打开IDLE并转到
Options > Configure > Highlighting
- 在“自定义”或“内置”选项下选择“ Darcula”主题(取决于第三步文件名)
config-highlight.cfg
:
[Darcula]
normal-foreground = #A9B7C6
normal-background = #2B2B2B
definition-foreground = #A9B7C6
definition-background = #2B2B2B
keyword-foreground = #CC7832
keyword-background = #2B2B2B
builtin-foreground = #8888C6
builtin-background = #2B2B2B
string-foreground = #008080
string-background = #2B2B2B
comment-foreground = #808080
comment-background = #2B2B2B
cursor-foreground = #BBBBBB
error-foreground = #A9B7C6
error-background = #532B2E
hit-foreground = #A9B7C6
hit-background = #155221
hilite-foreground = #A9B7C6
hilite-background = #214283
break-foreground = #A9B7C6
break-background = #3A2323
console-foreground = #007E09
console-background = #2B2B2B
stdout-foreground = #BBBBBB
stdout-background = #2B2B2B
stderr-foreground = #FF6B68
stderr-background = #2B2B2B