【补充】

Python GUI 中 :ALT+P 可以重复上一条命令。

--------------------------------------------------------------------

使用python idle的人恐怕都无法忍受默认的白色背景,及其语法高亮主题。

大家更倾向于使用黑色背景。

下面介绍Obsidian, Desert, 和Tango三种主题配置

在 用户目录 的.idlerc 目录下新建名为 config-highlight.cfg 文件,并加入如下内容

  1. [tango]
  2. definition-foreground = #fce94f
  3. error-foreground = #fa8072
  4. string-background = #2e3436
  5. keyword-foreground = #8cc4ff
  6. normal-foreground = #ffffff
  7. comment-background = #2e3436
  8. hit-foreground = #ffffff
  9.  
  10. builtin-background = #2e3436
  11. stdout-foreground = #eeeeec
  12. cursor-foreground = #fce94f
  13. hit-background = #2e3436
  14. comment-foreground = #73d216
  15. hilite-background = #edd400
  16. definition-background = #2e3436
  17. stderr-background = #2e3436
  18. break-background = #2e3436
  19. console-foreground = #87ceeb
  20. normal-background = #2e3436
  21. builtin-foreground = #ad7fa8
  22. stdout-background = #2e3436
  23. console-background = #2e3436
  24. stderr-foreground = #ff3e40
  25. keyword-background = #2e3436
  26. string-foreground = #e9b96e
  27. hilite-foreground = #2e3436
  28. error-background = #2e3436
  29.  
  30. [desert]
  31. definition-foreground = #98fb98
  32. error-foreground = #ff0000
  33.  
  34. keyword-foreground = #cc6600
  35. normal-foreground = #f0e68c
  36. comment-background = #
  37. hit-foreground = #ffffff
  38. break-foreground = black
  39. builtin-background = #
  40. stdout-foreground = #eeeeee
  41. cursor-foreground = #ffcc00
  42. hit-background = #
  43. comment-foreground = #87ceeb
  44. hilite-background = gray
  45. definition-background = #
  46. stderr-background = #
  47. break-background = #ffff55
  48. console-foreground = #87ceeb
  49. normal-background = #
  50. builtin-foreground = #519e51
  51. stdout-background = #
  52. console-background = #
  53. stderr-foreground = #ff3e40
  54. keyword-background = #
  55. string-foreground = #ffa0a0
  56. hilite-foreground = #
  57. error-background = #
  58.  
  59. [Obsidian]
  60. definition-foreground = #678CB1
  61. error-foreground = #FF0000
  62.  
  63. keyword-foreground = #93C763
  64. normal-foreground = #E0E2E4
  65. comment-background = #
  66. hit-foreground = #E0E2E4
  67. builtin-background = #
  68. stdout-foreground = #678CB1
  69. cursor-foreground = #E0E2E4
  70.  
  71. comment-foreground = #66747B
  72. hilite-background = #2F393C
  73. hilite-foreground = #E0E2E4
  74. definition-background = #
  75. stderr-background = #
  76. hit-background = #
  77. console-foreground = #E0E2E4
  78. normal-background = #
  79. builtin-foreground = #E0E2E4
  80. stdout-background = #
  81. console-background = #
  82. stderr-foreground = #FB0000
  83. keyword-background = #
  84. string-foreground = #EC7600
  85. break-foreground = #E0E2E4
  86. error-background = #

重启IDLE,依次选 Options -> Configure IDLE -> Highlighting 如下图

Python GUI 背景色与语法高亮主题配置的更多相关文章

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

    使用python idle的人恐怕都无法忍受默认的白色背景,及其语法高亮主题. 大家更倾向于使用黑色背景. 用户目录 的.idlerc 目录: 下面的各个系统下对应的该文件的位置: 在Linux系列系 ...

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

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

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

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

  4. python gui之tkinter语法杂记

    随手写的,后续整理. 1. Entry如何调用父类的__init__? 以下错,原因后续分析 super(Your_Entry_Class, self).__init__(self,**kw) 报错: ...

  5. Python -- Gui编程 -- Qt库的使用 -- 配置资源文件

    1.源文件(qtRes.py) import sys from PyQt4 import QtCore, QtGui, uic class MyDialog(QtGui.QDialog): def _ ...

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

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

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

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

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

  9. Python IDLE 代码高亮主题

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

随机推荐

  1. select 选择的制作

    我说的select选择是指 手机端的话,一般考虑元素 + 伪类制作 .checkbox{ border:1px solid #987;width:16px;height:16px; } .checkb ...

  2. pip安装 exception记录

    在下载p4c-bm的时候,执行 sudo pip install -r requirements.txt 时,出现exception: Exception: Traceback (most recen ...

  3. 腾讯QQ认证空间4月27日已全面开放申请,欲进军自媒体

    今天看到卢松松的博客上爆出,腾讯QQ认证空间4月27日已全面开放申请的消息,这一消息出来, 马浩周根据提示方法进行申请,下面先说说腾讯QQ认证空间的申请方法: QQ认证空间开放申请公告地址:http: ...

  4. Android Unable to instantiate activity: Didn't find class on path

    Android Unable to instantiate activity: Didn't find class on path After i spend a while on this prob ...

  5. 在将 varchar 值 '' 转换成数据类型 int 时失败

    我们有时候用in语句的时候,发现存在Sql注入漏洞,想参数化处理一下,遇到语句执行问题!! declare @ids varchar() set @ids='216,218' select * fro ...

  6. css background-size 属性 兼容ie8 ie7 方案

    <!-- background-size-polyfill v0.2.0 | (c) 2012-2013 Louis-Rémi Babé | MIT License --> <PUB ...

  7. SSD Trim Support -- 保护 SSD

    今天同事告诉我,换了 ssd 之后需要做以下配置能使 ssd 寿命更长.原理是配置系统定期清理和回收 ssd 的资源. 最终效果: 步骤: 1.下载 trim enabler: https://gis ...

  8. 更改ubuntu多系统启动顺序

    电脑上双系统,启动时界面如下 ubuntu advance ubuntu option windows 在/boot/grub/grub.cfg中,查看到可以简单的修改/etc/defaulg/gru ...

  9. jar包目录下MANIFEST.MF标准格式

    jar包目录格式: |-- com | |-- test.class |-- META-INF | |-- MAINFEST.MF 一个正常的jar包下必有META-INF/MANIFEST.MF清单 ...

  10. PostgreSQL ROW_NUMBER() OVER()

    转自:http://blog.csdn.net/luojinbai/article/details/45078809 语法:  ROW_NUMBER() OVER( [ PRITITION BY co ...