Chinaunix首页 | 论坛 | 博客
  • 博客访问: 654266
  • 博文数量: 111
  • 博客积分: 5010
  • 博客等级: 大校
  • 技术积分: 1461
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-08 14:40
文章分类

全部博文(111)

文章存档

2010年(10)

2009年(70)

2008年(31)

我的朋友

分类:

2009-12-18 22:01:55

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

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

获取相应的.uew文件
有两种方式:
1.从UltraEdit官方网站下载wordfile扩展文件包:ALL WORDFILES IN ONE ,下载地址为。
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

附 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"
!
&


阅读(4021) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~