Python背景色与语法高亮主题配置
使用python idle的人恐怕都无法忍受默认的白色背景,及其语法高亮主题。
大家更倾向于使用黑色背景。
用户目录 的.idlerc 目录:
下面的各个系统下对应的该文件的位置: 在Linux系列系统下路径为(~表示用户目录):
~/.idlerc/
在Windows XP下路径为:
C:/Documents and Settings/<用户名>/.idlerc/
在Windows 7下路径为:
C:/Users/<用户名>/.idlerc/
在window下,可以直接在运行框中输入下面的路径定位到位置:
%USERPROFILE%/.idlerc/
有时候会发现目录中没有config-highlight.cfg文件,那么自己就创建一个:在Linux下:
# for Linuxvi ~/.idlerc/config-highlight.cfg
在window下:
notepad %USERPROFILE%/.idlerc/config-highlight.cfg
下面介绍Obsidian, Desert, 和Tango三种主题配置
在 用户目录 的.idlerc 目录下新建名为 config-highlight.cfg 文件,并加入如下内容
[tango]
definition-foreground = #fce94f
error-foreground = #fa8072
string-background = #2e3436
keyword-foreground = #8cc4ff
normal-foreground = #ffffff
comment-background = #2e3436
hit-foreground = #ffffff
break-foreground = #
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 [desert]
definition-foreground = #98fb98
error-foreground = #ff0000
string-background = #
keyword-foreground = #cc6600
normal-foreground = #f0e68c
comment-background = #
hit-foreground = #ffffff
break-foreground = black
builtin-background = #
stdout-foreground = #eeeeee
cursor-foreground = #ffcc00
hit-background = #
comment-foreground = #87ceeb
hilite-background = gray
definition-background = #
stderr-background = #
break-background = #ffff55
console-foreground = #87ceeb
normal-background = #
builtin-foreground = #519e51
stdout-background = #
console-background = #
stderr-foreground = #ff3e40
keyword-background = #
string-foreground = #ffa0a0
hilite-foreground = #
error-background = # [Obsidian]
definition-foreground = #678CB1
error-foreground = #FF0000
string-background = #
keyword-foreground = #93C763
normal-foreground = #E0E2E4
comment-background = #
hit-foreground = #E0E2E4
builtin-background = #
stdout-foreground = #678CB1
cursor-foreground = #E0E2E4
break-background = #
comment-foreground = #66747B
hilite-background = #2F393C
hilite-foreground = #E0E2E4
definition-background = #
stderr-background = #
hit-background = #
console-foreground = #E0E2E4
normal-background = #
builtin-foreground = #E0E2E4
stdout-background = #
console-background = #
stderr-foreground = #FB0000
keyword-background = #
string-foreground = #EC7600
break-foreground = #E0E2E4
error-background = #
重启IDLE,依次选 Options -> Configure IDLE -> Highlighting 如下图

有童鞋要问字体怎么配置?这个容易,在Highlighting选项卡旁边有个Fonts/Tabs选项卡,可以用来配置字体和缩进宽度的:

Python背景色与语法高亮主题配置的更多相关文章
- Python GUI 背景色与语法高亮主题配置
[补充] Python GUI 中 :ALT+P 可以重复上一条命令. ---------------------------------------------------------------- ...
- 修改Python IDLE代码配色及语法高亮主题
初学Python,想必大家拿来练习最多的IDE就是Python自带的IDLE了,但是默认的代码配色及语法高亮主题确实很不适应,所以我们需要做个小小的美化,比如像下面这样我做的美化配置: HOW TO ...
- LaTeX中Python代码的语法高亮
LaTeX中Python代码的语法高亮 本文中,"{}"中的字母为LaTeX或Python的包名,只有"Pygments"是Python的包,其他都是LaTeX ...
- phpDesigner 7.2.5 注册码 更改 语法高亮 主题
注册码: 用户名:www.xiazaiba.com 序列号:43AB0D432A29EE238CCE0F884D84D8A18498498E98298A98568AD05A0B40 验证码:7S2FF ...
- 【转】让Souce Insight支持多种语言的语法高亮:Python,Ruby,ARM汇编,windows脚本文件(bat/batch),PPC,SQL,TCL,Delphi等
原文网址:http://www.crifan.com/source_insight_support_highlight_for_python_ruby_arm_batch_ppc_sql_tcl_de ...
- vim python配置 安装pep8自动检查插件,语法高亮
pep8 http://www.vim.org/scripts/script.php?script_id=2914 语法高亮 http://www.vim.org/scripts/script.php ...
- Python IDLE 代码高亮主题
Python IDLE 代码高亮主题 使用方法: 打开C盘我的 C:\Documents and Settings\你的用户名.idlerc文件夹 里面会有一个 config-highlight.cf ...
- mac 终端 使用 solarized 主题设置语法高亮
mac 终端 使用 solarized 主题设置语法高亮 先来看看 solarized 在 mac 终端上的效果图片 一:先下载 solarized 官网下载:https://github.com/a ...
- Mac下Vim配置语法高亮
设置终端的字体颜色 如图,打开终端然后,选择偏好设置,再选择描述文件,再窗口左侧可以选择系统配置好的,或者你也可以自定义,最后别忘了把你的配置设置成默认就行 Vim语法高亮设置 只需要找到vimrc配 ...
随机推荐
- poj1434Fill the Cisterns!(二分)
链接 题目说给你n个水箱,初始是没有水的,每个的高低位置可能不同,给了你初始的水箱底部所处的水平线位置,问给你V体积水时,水的水平线位置. 直接二分位置p,对于每一个底部低于水平线位置的水箱,里面的水 ...
- Date 与 switch的运用
<html><head><title>日期</title><script>function toChinese(day){ switch(d ...
- linux 安装 easygui
如果遇到问题也查找不到资料时,可以认真阅读安装文件下的README说明,或许可以得到帮助. 本次环境为redhat 6.4.python2.7.9 linux 图形化显示需要安装一些依赖包,比如lib ...
- 记录---base64
什么是Base64呢? Base64是网络上最常见的用于传输8Bit字节代码的编码方式之一,大家可以查看RFC2045-RFC2049,上面有MIME的详细规范.Base64编码可用于在HTTP环境下 ...
- sccm部署win7原版系统系统盘为D盘
1. 系统部署完毕之后是这样的
- java final
final:(最终的)看不懂时有必要分析内存画图,不同方法的局部变量是相互独立的额不要被所起的名所困扰. 1)每个方法运行时jvm,都会为其开辟一片内存空间.内存空间是属于这个方法的, 同时,方法中的 ...
- C++疑难杂症
1.如果在类成员函数外部显示的调用其父类的某个接口. 2.对于一个父类的成员, 子类如何在构造函数中对其进行特殊的定制生成. 3.对于一个需要用常量来声明的类型, 如何定义这个常量. 比如int ...
- 委托(C# 编程指南)
原文地址:https://msdn.microsoft.com/zh-cn/library/ms173171.aspx delegate 是表示对具有特定参数列表和返回类型的方法的引用的类型. 在实例 ...
- 如何通过ildasm/ilasm修改assembly的IL代码
原文地址:http://kb.cnblogs.com/page/101162/ 这段时间为跟踪一个Bug而焦头烂额,最后发现是Framework的问题,这让人多少有些绝望.所以到微软论坛提了个帖子,希 ...
- FileReader本地预览图片
<body> <p><label>请选择一个图像文件:</label><input type="file" id=" ...