关于UltraEdit 15.* 的语法高亮-支持Matlab程序.m文件

需求
UltraEdit作为文本编辑器有许多其他编辑器所没有的功能,现在有一个好的功能—语法着色。
最近需要看一点Matlab程序.m文件,需要UltraEdit支持这种文件。

说明
UltraEdit14.*版本的语法着色已经不是worldfile.txt了,是worldfile.uew。
但是到现在15.*版本,wordfile的形式再次发生改变了,具体的是wordfiles/*.uew。

获取相应的.uew文件
有两种方式:
1.从UltraEdit官方网站下载wordfile扩展文件包:ALL WORDFILES IN ONE ,下载地址为http://www.ultraedit.com/files/wf/wf.zip。
2.Google baidu也可以找到。

配置UltraEdit
1.把获取到的.uew拷贝到wordfiles/文件夹里。
2.wordfiles/文件夹有两个,
   第一个在C:/Documents and Settings/你的个人用户名/Application Data/IDMComp/UltraEdit;
   第二个在UltraEdit安装目录下。
   UltraEdit默认使用的是第一个。
   个人建议放在第二个目录中,以后重装系统还可用不用再调整设置了。
   然后在UltraEdit里菜单---高级Advanced---配置Configration---编辑器显示---语法着色---词列表的完整路径。把目录名称改为./wordfiles就可以了,这样以后即使重装系统也不要再设置了。最后,别忘了“确定”或者“应用”。

Others

UltraEdit默认的行距是1倍,看了有点难受,建议改为1.5倍行距。默认的字体改为Arial
以上内容出处:http://blog.chinaunix.net/u1/59015/showart_2125349.html

说明:于“ 菜单-->高级 -->配置--》编辑器显示--》语法高亮 ”中配置更改后的“wordfile.uew”路径,然后确认。


附 UltraEdit支持Matlab .M文件的 m.uew(部分)。

/L14"MatLab File" case Line Comment = % String Chars = ' File Extensions = m M
/Function String = "%[ ^t] function*=[ ^t] ^([a-z0-9_] ^)"
/Function String 1 = "%[ ^t] function[ ^t] ^([a-z0-9_] ^)[ ^t] [~=]"
/Indent Strings SOL = "case" "catch" "else" "elseif" "if" "otherwise" "switch" "try" "while"
/Unindent Strings = "case" "catch" "else" "elseif" "end"
/Delimiters = ~!@$^&*()- =|//{}[]:;"'
<> , .?
/C1"Statements"
break
case catch
else elseif end
for function
global
if
otherwise
persistent
return
switch
try
while
/C2"Supplied functions"
abs acos acosh add_annotation add_block add_line add_param all and any asin asinh assignin atan atan2 atanh
balance beep bitand bitcmp bitget bitor bitset bitshift bitxor builtin
callstats cat cd ceil cell cell2struct cellhorzcat cells char chdir check_system chol cholinc cholupdate class clc clear clock close_system colon compare_system computer conj contourc conv2 copyobj cos cosh cputime ctranspose cumprod cumsum
dbclear dbcont dbdown dbquit dbstack dbstatus dbstep dbstop dbtype dbup delete delete_annotation delete_block delete_line delete_param det diag diary diff disp display dongarra dos double dragrect drawnow
echo eig end eps eq error errortrap eval evalc evalin exist exit exp expm eye
fclose feature feof ferror feval fft fftn fftw fgets fieldnames fields filesep fill fill3 filter find find_system findpackage findstr findtype finite fix floor fopen format fprintf frame2im fread fscanf fschange fseek ftell full func2str functions functionscalled fwrite
ge getenv getframe global gs_get_buttonmotion gt
handle handle2struct hardcopy hcreate help hess hittest home horzcat hregister
i ieee ifft ifftn im2frame imag import inf Inf inferiorto inmem input inputname int16 int32 int8 inv isa iscell ischar isempty isequal isfinite isglobal ishandle isieee isinf isjava isletter islogical isnan isreal isruntime isspace issparse isstr isstudent
j java javaArray javaMethod javaObject java_array java_method java_object
keyboard
lasterr lastwarn ldivide le length license load log log2 logical loglog lookfor lower lt ltitr lu luinc
magic matlabpath matlabroot max methods mexext mfilename mimofr min minus mislocked mldivide mlock mod more movie mpower mrdivide mtimes munlock
nan NaN nargin nargout ndims ne new_system norm not numel
ones open_system or
pack pause permute persistent pfile pi plot plot3 plus pow2 power prod
qr qrupdate quit qz
rand randn rbbox rcond rdivide real rehash rem reset reshape rmappdata round rtwgen runtime
save save_system schur selectmoveresize semilogx semilogy setappdata setstr sign sim simulink simver sin single sinh size sldebug sort sparse sparsfun sprintf sqrt sscanf str2func strcmp strcmpi strfind string strncmp strncmpi strrep struct struct2cell struct2handle subsasgn subsindex subsref sum superiorto svd system system_dependent
tan tanh tic times toc transpose tril triu trmginput type
u_convert_to_gobject uigetfile uimenufcn uint16 uint32 uint8 uipushtool uiputfile uisetcolor uisetfont uitoggletool uitoolbar uminus unix uplus upper
version vertcat vms
waitfor waitforbuttonpress warning what which who whos
xlate
zeros
/C3"Miscellany"
axes
dir
figure findobj
gcbf gcbo gcf gco get get_param gcbh
image
light line
set set_param sf
patch pwd
rectangle
surface
text
uicontrol uimenu uicontextmenu
/C4"Operators"
!
&

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值