python IDLE 背景以及字体的修改
来源:互联网 发布:淘宝七匹狼钱包 编辑:程序博客网 时间:2024/05/29 04:27
为了保护眼睛,决定把白色背景换掉:
1 首先,在已经下载好的python文件目录下,找到config-highlight.def文件,我的是在H:\python\python3**\Lib\idlelib**文件夹下。
2.打开文件后,你会看到一些默认的颜色配置,比如经典的颜色配置就是白色背景,一般这个文件中会有两种配置可供选择:
[IDLE Classic]和
[IDLE New],表现在IDLE界面上就是在python shell下,选择options—configure IDLE—-highlighting选项中,右侧的highlighting theme主题选择,有两种可选方案,就上文件中的那两种。
3.如果直接在源文件上修改颜色有些麻烦,除非你特别熟悉颜色。网上有经典的背景配置:
[Obsidian]definition-foreground = #678CB1error-foreground = #FF0000string-background = #293134keyword-foreground = #93C763normal-foreground = #E0E2E4comment-background = #293134hit-foreground = #E0E2E4builtin-background = #293134stdout-foreground = #678CB1cursor-foreground = #E0E2E4break-background = #293134comment-foreground = #66747Bhilite-background = #2F393Chilite-foreground = #E0E2E4definition-background = #293134stderr-background = #293134hit-background = #000000console-foreground = #E0E2E4normal-background = #293134builtin-foreground = #E0E2E4stdout-background = #293134console-background = #293134stderr-foreground = #FB0000keyword-background = #293134string-foreground = #EC7600break-foreground = #E0E2E4error-background = #293134[tango]definition-foreground = #fce94ferror-foreground = #fa8072string-background = #2e3436keyword-foreground = #8cc4ffnormal-foreground = #ffffffcomment-background = #2e3436hit-foreground = #ffffffbreak-foreground = #000000builtin-background = #2e3436stdout-foreground = #eeeeeccursor-foreground = #fce94fhit-background = #2e3436comment-foreground = #73d216hilite-background = #edd400definition-background = #2e3436stderr-background = #2e3436break-background = #2e3436console-foreground = #87ceebnormal-background = #2e3436builtin-foreground = #ad7fa8stdout-background = #2e3436console-background = #2e3436stderr-foreground = #ff3e40keyword-background = #2e3436string-foreground = #e9b96ehilite-foreground = #2e3436error-background = #2e3436
直接把上面的代码copy到刚才打开的config-highlight.def文件中,然后重启shell就可以。
重启后,shell会默认选择原来的。你就在highlighting theme主题中查看,此时已经多了两种主题,就是你刚才添加的。
主题名字为tango..
大功告成。。
字体的修改
在setting中,如果你设置的字体是中文字体,再怎么修改大小也是没有用的。必须把字体改为英文字体才行。。
3 0
- python IDLE 背景以及字体的修改
- python IDLE 背景修改 IDLE (Python GUI)
- python IDLE自定义背景配置、字体
- 修改webview的字体大小比例,背景颜色,以及字体颜色
- zend stdio修改背景颜色以及字体
- Eclipse背景颜色以及字体颜色修改
- python idle字体颜色配置
- 修改eclipse的背景颜色为黑色以及编辑区域的字体样式
- 修改secureCRT背景和字体的颜色
- python IDLE 改变窗口背景颜色
- python改字体崩溃,打不开idle
- python IDLE的使用
- Python的idle清屏
- android:修改PagerTabStrip中的背景颜色,标题字体的样式、颜色和图标以及指示条的颜色
- android:修改PagerTabStrip中的背景颜色,标题字体的样式、颜色和图标以及指示条的颜色
- 修改eclipse背景、字体颜色.
- 电脑桌面的快捷方式的字体有背景颜色,怎么修改?
- 自定义Section:修改UITableView的Section的背景和字体
- Codis FE管理界面验证配置
- TCP/IP 封装-分用
- URL汉字转码
- 纯代码实现 AutoLayout
- 【solr】关于solr schema.xml 和solrconfig.xml的解释
- python IDLE 背景以及字体的修改
- windows编译nginx超详细教程
- 基于bootstrap风格的项目
- Hbase 学习笔记一 》Data Coordinates
- Android AsyncTask 源码解析
- memset效率问题
- Clever Y [Bzoj 1467]
- struts.xml页面刷新
- 第16周-阅读程序2(2)