Python安装及EditPlus集成与配色方案

工具:Python3.64、Python2.74,EditPlus
一:安装Python环境
官网下载:www.python.org/downloads/
在这里插入图片描述
选择适合的版本,注意32位的Python无法在64位的windos上运行
我下载的是Python3.6和Python2.7,自己选择合适的下载。

二:安装Python
使用Python高版本作为主要开发工具,安装时勾选高版本的“add python to path”,自动添加环境变量,其他选项默认即可,Python27同理。
安装完后验证:打开命令行程序,输入:Python
在这里插入图片描述
进入Python27路径,输入Python
在这里插入图片描述
出现>>>即表示安装成功。
三:在EditPlus中集成Python
打开EditPlus=》工具=》自定义工具:
在这里插入图片描述
Python3.6:添加工具,起名称:菜单文本,命令填:Python
参数选择文件名称,起始目录选择文件路径。动作选择捕获控制台输出,以上设置完毕后,选择输出模式:
去掉默认模式:添加正则表达式:

File"(.+)",line([0-9]+)
# 用于捕获异常位置

在这里插入图片描述
Python27由于没有添加到系统环境变量中,不同的只是修改命令:
在这里插入图片描述
下载Python语法相关文件,解压到EditPlus目录下:
下载地址: http://www.editplus.com/files/pythonfiles.zip
功能是函数自动补全和语法高亮显示。
直接修改文件类型及语法:
在这里插入图片描述
制表缩进:
在这里插入图片描述
函数模式:
在这里插入图片描述
修改正则表达式:
[\t]*def[\t].+:
接着设置Python默认模版,若无可添加:
在这里插入图片描述
四:配置界面配色方案
修改editplusj_u.ini文件,建议先备份
一般在EditPlus目录下的Data\settings
在这里插入图片描述
拷贝下列代码覆盖原文件


[Options]
Placement=2C00000000000000010000000083FFFF0083FFFFFFFFFFFFFFFFFFFF3A0300009B0000007207000072030000FF
Window List=00000000000000000000000000000000FF
Marker List=00000000000000000000000000000000FF
Function List=00000000000000000000000000000000FF
Open Remote=00000000000000000000000000000000FF
Expand=00000000000000000000000000000000FF
Project Pos=00000000000000000000000000000000FF
Workspace Path=D:\WorkSpace\codes\02\2.3
Cliptext Window=232
Cliptext Window 2=574
Output=143
Output 2=170
Folding=1
Tab Index=1
Cliptext=2
Custom colors=6D6D7200FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF0031282700FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FF
Matching Brace=1
Indent guide=1
Cliptext Edit=00000000000000000000000000000000FF
[Files]
Encoding=65001
Backup=0
Backup Remote=0
[Fonts]
Edit Window=F0FFFFFF00000000000000000000000090010000000000000302013143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Printer=F4FFFFFF00000000000000000000000090010000000000000000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Output Window=F4FFFFFF00000000000000000000000090010000000000000000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Cliptext Window=F4FFFFFF0000000000000000000000009001000000000001000000004D006900630072006F0073006F006600740020005900610048006500690020005500490000000000000000000000000000000000000000000000000000000000FF
Document Selector=F4FFFFFF0000000000000000000000009001000000000001000000004D006900630072006F0073006F006600740020005900610048006500690020005500490000000000000000000000000000000000000000000000000000000000FF
Hex Viewer=F4FFFFFF00000000000000000000000090010000000000010000003143006F007500720069006500720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 1=F4FFFFFF00000000000000000000000090010000000000000000002241007200690061006C000000720020004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 2=F5FFFFFF000000000000000000000000900100000000000000000022560065007200640061006E00610000004E0065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 3=F4FFFFFF000000000000000000000000900100000000000000000012540069006D006500730020004E0065007700200052006F006D0061006E0000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 4=F5FFFFFF0000000000000000000000009001000000000000000000224D0053002000530061006E0073002000530065007200690066000000000000000000000000000000000000000000000000000000000000000000000000000000FF
Custom 5=F3FFFFFF00000000000000000000000090010000000000FF000000315400650072006D0069006E0061006C00000065007700000000000000000000000000000000000000000000000000000000000000000000000000000000000000FF
[Tool Option]
Top Selector=1
[Colors\Text]
Background=2238503
Default=0
Foreground=16777215
[Colors\Keyword 1]
Foreground=8272368
Default=0
[Colors\Embedded script]
Foreground=16777215
Default=0
[Colors\Keyword 3]
Foreground=16777215
Default=0
[Colors\Keyword 6]
Foreground=8716287
Default=0
[Colors\Keyword 7]
Foreground=8716287
Default=0
[Colors\Keyword 8]
Foreground=8716287
Default=0
[Colors\Keyword 9]
Foreground=8454143
Default=0
[Colors\Keyword 10]
Foreground=8716287
Default=0
[Colors\Quotation]
Foreground=8454143
Default=0
[Colors\Quotation 2]
Foreground=5107956
Default=0
[Colors\Line comment]
Foreground=10789024
Default=0
[Colors\Line number]
Foreground=12632256
Background=2238503
Default=0
[Colors\Folding mark -]
Background=2238503
Default=0
[Colors\Matching words]
Default=0
Background=718314
[Colors\Keyword 2]
Foreground=16379142
Default=0
[Colors\Folding mark +]
Background=2238503
Default=0
[Colors\Text selection]
Background=7039851
Default=0
[Colors\Number]
Foreground=16524240
Default=0
[Colors\Block comment]
Foreground=8421504
Default=0
[Colors\Keyword 5]
Foreground=15574913
Default=0
[Colors\Ruler]
Foreground=12632256
Default=0
Background=2566187
[Colors\Cursor indicator]
Background=16777215
Default=0
[Colors\Indent Guide]
Foreground=7499117
Default=0

效果如下:
Python36
在这里插入图片描述
Python27
在这里插入图片描述
输出函数只包含中文是没问题的,具体情况暂时不清楚原因,另外配置完用户自定义工具默认的快捷键是ctrl+1,ctrl+2……用户可重定义:

在这里插入图片描述

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值