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配 ...
随机推荐
- js获取select字段值的方法
var index = obj.selectedIndex; // 选中索引 var value = obj.options[index].value; // 选中值 var schoolName = ...
- java 生成随机数
本段代码是生成的六位随机数.也可修改生成任意位随机数. int[] array = {0,1,2,3,4,5,6,7,8,9}; Random rand = new Random(); for (in ...
- Python核心编程-基础
python编码风格指南:www.Python.org/doc/essays/styleguide.htmlwww.Python.org/dev/peps/pep-0007/www.Python.or ...
- phpstorm xdebug 碰到很神奇的一件事
早上配置好了,且正常运行了,然后没有退出phpstorm, 结果到了下午,配置消失了, 还好稳住了阵脚,然后配置了,就好了. 很重要一点,在调试观看源代码的时候,一定要浅薄,然后深入,不然累死,得不偿 ...
- 2010 word 如何新建目录
首先插入一个bullet 填充内容,编好编号,选择文字,右键,然后选择相应的level,然后点击一级菜单reference, 然后点击table of contents, 选择某一个样式,然后插入成功 ...
- centos7 修改selinux 开机导致 faild to load SELinux policy freezing 错误
centos7 修改selinux 开机导致 faild to load SELinux policy freezing 错误 之前把selinux关闭了,这次想打开selinux,于是修改了 /e ...
- 能源项目xml文件 -- app-init.xml
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.sp ...
- 基于cfx的webservice调用
一.简单的(结合Spring) 1. 新建一个web 项目,加入cfx所需要jar 2. 编写要发布的Web Service接口和实现类所需要jar 接口类 HelloWorld : import ...
- nodeschool.io 2
~~ BABY STEPS ~~ Write a program that accepts one or more numbers as command-line arguments and pr ...
- 《javascript高级程序设计》第六章 Object Creation VS Inheritance
6.1 理解对象 6.1.1 属性类型 6.1.2 定义多个属性 6.1.3 读取属性的特性6.2 创建对象 6.2.1 工厂模式 6.2.2 构造函数模式 6.2.3 原型模式 6.2.4 组合使用 ...