博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Python IDLE 代码高亮主题
阅读量:6123 次
发布时间:2019-06-21

本文共 3180 字,大约阅读时间需要 10 分钟。

hot3.png

使用方法:

打开C盘我的 C:\Documents and Settings\你的用户名\.idlerc  文件夹

里面会有一个  config-highlight.cfg 如果没有请自已创建一个

将下面的代码放到 config-highlight.cfg 里面,并重启IDLE

这下在IDLE的设置highlight项里面就有几个主题了

[blackboard]keyword-background = #0C1021definition-foreground = #D63A1Berror-foreground = #ff0000string-background = #0C1021keyword-foreground = #FBDE2Dhilite-foreground = #000000comment-background = #0C1021hit-foreground = #ffffffbuiltin-background = #0C1021stdout-foreground = #eeeeeecursor-foreground = #ffcc00break-background = #ffff55comment-foreground = #505050hilite-background = graydefinition-background = #0C1021stderr-background = #0C1021hit-background = #0C1021console-foreground = #87ceebnormal-background = #0C1021builtin-foreground = #fd9902stdout-background = #0C1021console-background = #0C1021stderr-foreground = #ff3e40normal-foreground = #F8F8F8string-foreground = #61CE3Cbreak-foreground = blackerror-background = #000000 [twilight]keyword-background = #141414definition-foreground = #c86428error-foreground = #ff0000string-background = #141414keyword-foreground = #c2964bhilite-foreground = #00ffffcomment-background = #141414hit-foreground = #ffffffbuiltin-background = #141414stdout-foreground = #eeeeeecursor-foreground = #ffcc00break-background = #ffff55comment-foreground = #524d53hilite-background = #0000a0definition-background = #141414stderr-background = #141414hit-background = #141414console-foreground = #87ceebnormal-background = #141414builtin-foreground = #ce3e24stdout-background = #141414console-background = #141414stderr-foreground = #ff3e40normal-foreground = #FFFFFFstring-foreground = #61CE3Cbreak-foreground = blackerror-background = #000000[desert]keyword-background = #333333definition-foreground = #98fb98error-foreground = #ff0000string-background = #333333keyword-foreground = #cc6600hilite-foreground = #000000comment-background = #333333hit-foreground = #ffffffbuiltin-background = #333333stdout-foreground = #eeeeeecursor-foreground = #ffcc00break-background = #ffff55comment-foreground = #87ceebhilite-background = graydefinition-background = #333333stderr-background = #333333hit-background = #333333console-foreground = #87ceebnormal-background = #333333builtin-foreground = #519e51stdout-background = #333333console-background = #333333stderr-foreground = #ff3e40normal-foreground = #f0e68cstring-foreground = #ffa0a0break-foreground = blackerror-background = #000000[cobalt]keyword-background = #001B33definition-foreground = #FFDD11error-foreground = #ff0000string-background = #001B33keyword-foreground = #FF7222hilite-foreground = #00ffffcomment-background = #001B33hit-foreground = #ffffffbuiltin-background = #001B33stdout-foreground = #eeeeeecursor-foreground = #ffcc00break-background = #ffff55comment-foreground = #007699hilite-background = #0000a0definition-background = #001B33stderr-background = #001B33hit-background = #001B33console-foreground = #87ceebnormal-background = #001B33builtin-foreground = #D40E36stdout-background = #001B33console-background = #001B33stderr-foreground = #ff3e40normal-foreground = #F8F8F8string-foreground = #61CE3Cbreak-foreground = blackerror-background = #000000

转载于:https://my.oschina.net/kyeeliu/blog/518380

你可能感兴趣的文章
[TC13761]Mutalisk
查看>>
三级菜单
查看>>
Data Wrangling文摘:Non-tidy-data
查看>>
加解密算法、消息摘要、消息认证技术、数字签名与公钥证书
查看>>
while()
查看>>
常用限制input的方法
查看>>
Ext Js简单事件处理和对象作用域
查看>>
IIS7下使用urlrewriter.dll配置
查看>>
12.通过微信小程序端访问企查查(采集工商信息)
查看>>
WinXp 开机登录密码
查看>>
POJ 1001 Exponentiation
查看>>
HDU 4377 Sub Sequence[串构造]
查看>>
云时代架构阅读笔记之四
查看>>
WEB请求处理一:浏览器请求发起处理
查看>>
Lua学习笔记(8): 元表
查看>>
PHP经典算法题
查看>>
LeetCode 404 Sum of Left Leaves
查看>>
醋泡大蒜有什么功效
查看>>
hdu 5115(2014北京—dp)
查看>>
数据结构中常见的树(BST二叉搜索树、AVL平衡二叉树、RBT红黑树、B-树、B+树、B*树)...
查看>>