在UltraEdit的wordfile中添加python的语法支持
发现UltraEdit有对Perl的语法高亮支持,但是打开Python文件的时候却没有,网上找到一些方法
方法一:我也是这么做的,可行
1、到UltraEdit安装目录下,进入wordfiles目录,新建文件:python.uew
把如下内容粘贴到该文件里,保存:
/L30"Python" Line Comment = # Block Comment One = """ Block Comment Off = """ Escape Char = / File Extensions = PY PYW
/Indent Strings = ":"
/Function String 1 = "%[ ,^t]++def[ ]+^([a-zA-Z0-9_]+*^):"
/Function String 2 = "%[ ,^t]++^(##[ a-zA-Z0-9_]+*^)##"
/Function String 3 = "%[ ,^t]++^(class[ ]+[a-zA-Z0-9_]+*^):"
/Delimiters = []{}()<>="''.,:+
/C1"Reserved Words"
and assert
break
class continue
def del
elif else except exec
finally for from
global
if im