使用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背景色与语法高亮主题配置的更多相关文章

  1. Python GUI 背景色与语法高亮主题配置

    [补充] Python GUI 中 :ALT+P 可以重复上一条命令. ---------------------------------------------------------------- ...

  2. 修改Python IDLE代码配色及语法高亮主题

    初学Python,想必大家拿来练习最多的IDE就是Python自带的IDLE了,但是默认的代码配色及语法高亮主题确实很不适应,所以我们需要做个小小的美化,比如像下面这样我做的美化配置: HOW TO ...

  3. LaTeX中Python代码的语法高亮

    LaTeX中Python代码的语法高亮 本文中,"{}"中的字母为LaTeX或Python的包名,只有"Pygments"是Python的包,其他都是LaTeX ...

  4. phpDesigner 7.2.5 注册码 更改 语法高亮 主题

    注册码: 用户名:www.xiazaiba.com 序列号:43AB0D432A29EE238CCE0F884D84D8A18498498E98298A98568AD05A0B40 验证码:7S2FF ...

  5. 【转】让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 ...

  6. vim python配置 安装pep8自动检查插件,语法高亮

    pep8 http://www.vim.org/scripts/script.php?script_id=2914 语法高亮 http://www.vim.org/scripts/script.php ...

  7. Python IDLE 代码高亮主题

    Python IDLE 代码高亮主题 使用方法: 打开C盘我的 C:\Documents and Settings\你的用户名.idlerc文件夹 里面会有一个 config-highlight.cf ...

  8. mac 终端 使用 solarized 主题设置语法高亮

    mac 终端 使用 solarized 主题设置语法高亮 先来看看 solarized 在 mac 终端上的效果图片 一:先下载 solarized 官网下载:https://github.com/a ...

  9. Mac下Vim配置语法高亮

    设置终端的字体颜色 如图,打开终端然后,选择偏好设置,再选择描述文件,再窗口左侧可以选择系统配置好的,或者你也可以自定义,最后别忘了把你的配置设置成默认就行 Vim语法高亮设置 只需要找到vimrc配 ...

随机推荐

  1. (转)使用Jmeter进行http接口测试

    前言: 本文主要针对http接口进行测试,使用Jmeter工具实现. Jmter工具设计之初是用于做性能测试的,它在实现对各种接口的调用方面已经做的比较成熟,因此,本次直接使用Jmeter工具来完成对 ...

  2. JavaWeb学习总结(八)—Cookie

    1.什么叫Cookie Cookie翻译成中文是小甜点,小饼干的意思.在HTTP中它表示服务器送给客户端浏览器的小甜点.其实Cookie就是一个键和一个值构成的,随着服务器端的响应发送给客户端浏览器. ...

  3. Win7/8下提示OpenSCManager failed 拒绝访问

    在我们日常使用命令行安装一些工具的时候经常提示如下错误提示,这是上市Win7或者Win8操作系统权限的原因 工具/原料   Win7,Win8操作系统 方法/步骤   1 以Win8为例,按WIN+Q ...

  4. JavaMail 发送邮件案例

    #----------------这两个是构建session必须的字段---------- #smtp服务器 mail.smtp.host=smtp.exmail.qq.com #身份验证 mail. ...

  5. Integer封装与拆箱

    Integer封装与拆箱 简介: 目录: Integer自动封装的陷阱 Integer自动拆箱机制 Integer自动封装的陷阱 public class IntegerDemo { public s ...

  6. C++ Primer 笔记(1)基础中的战斗机 输入输出 对输入不定数据处理

    今天打算再重新好好的看一遍C++ Primer这本很经典的书籍,笔记开始: 1.每个C++程序都包含一个或者多个函数,其中必须有一个main,操作系统通过调用main入手运行程序: 2.函数包括:返回 ...

  7. crontab在一秒内刷新多次导致部分脚本不生效的问题分析

    版权声明:本文由康中良原创文章,转载请注明出处: 文章原文链接:https://www.qcloud.com/community/article/182 来源:腾云阁 https://www.qclo ...

  8. SAP中寄售处理

    寄售分两种: 1, 供应商提供货物,我们销售 2,我们提供货物,寄售商销售 [@more@] 1, 供应商提供货物,我们销售 创建PO,购买寄售货物,categories维护成K,然后收货即可. 2, ...

  9. robotframework笔记6

    测试文件结构 *** Settings *** Library OperatingSystem Library BuiltIn Resource ressources.py *** Variables ...

  10. centos7 学习

    1.centos pid文件: 在Linux系统的目录/var/run下面一般我们都会看到很多的*.pid文件.而且往往新安装的程序在运行后也会在/var/run目录下面产生自己的pid文件.那么这些 ...