任何人都知道如何将pycharm的dracula方案闲置到pythons上

问题描述

有人知道如何将python dracula方案置于闲置状态吗,我认为闲置状态需要使用rgb颜色,而我无法找到一种dracula。

解决方法

是的,Github上有一个Darcula主题文件。

安装:

  1. 确保IDLE已关闭
  2. 在您的主目录/用户/ python目录中的某个位置查找.idlercidlelib文件夹 常见位置:C:\Users\.idlerc-C:\Users\%user%\.idlerc-Python\Lib\idlelib-/home/.idlerc
  3. 编辑/创建config-highlight.cfgconfig-highlight.def文件并粘贴提供的配置
  4. 打开IDLE并转到Options > Configure > Highlighting
  5. 在“自定义”或“内置”选项下选择“ 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

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...