UltraEdit中Matlab语法高亮显示的操作方法

      需要多种语法加亮,只需按照给定格式编写一个配置文件,并保存为后缀名.uew的文件,放到指定目录之下。UltraEdit会根据文件后缀名判断文件类型并读取相应的配置文件,进行对应的显示设置。
      关于高亮的选项在这里:dvanced->Configeration->Editor Display->Syntax Highlighting。(中文版本对应为:高级→配置→编辑器显示→语法高亮)


      

      1、不同语法的配置文件,编写或者下载、拷贝配置文件,存为.uew格式。

            官网(http://www.ultraedit.com/downloads/extras.html#wordfiles)可下载

      2、复制这个路径到地址栏,让它自己跳转过去。将该文件放到该路径下面。


MATLAB的配置文件:

/L20"Matlab" Nocase MATLAB_LANG Line Comment Num = 2%  Block Comment On = %{ Block Comment Off = %} String Chars = ' DisableMLS File Extensions = m asv
/Delimiters = ! "	$&'()*+,-./:;<=>?@[\]^{|}~
/Function String = "%[ ^t]++function*=[ ^t]++^([a-z0-9_]+^)"
/Function String 1 = "%[ ^t]++function[ ^t]+^([a-z0-9_]+^)[ ^t]++[~=]"
/Open Brace Strings = "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Indent Strings = "if" "else" "elseif" "switch" "while" "try" "catch" "case" "otherwise"
/Unindent Strings = "end" "else" "elseif" "catch" "case"
/Open Fold Strings = "function" "if" "for" "while" "switch"
/Close Fold Strings = "function" "end"
/Open Comment Fold Strings = "#Region" "**********"
/Close Comment Fold Strings = "#End Region" "**********"
/C1"Keywords"
break
case catch
else elseif end
for function
global
if
otherwise
persistent
return
switch
try
while
/C2"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 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 gs_get_buttonmotion gt
handle handle2struct hardcopy hcreate help hess hittest home horzcat hregister
i ieee ifft ifftn im2frame imag import inf inferiorto inmem input inputname int16 int32 int64 int8 intmax
intmin inv isa iscell ischar isempty isequal isfinite isglobal ishandle isieee isinf isjava isletter
islogical isnan isreal isruntime isspace issparse isstr isstudent
j java java_array java_method java_object javaArray javaMethod javaObject
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 nargin nargout ndims ne new_system norm not numel
ones open_system or
pack pause permute 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 uint64 uint8 uipushtool uiputfile uisetcolor
uisetfont uitoggletool uitoolbar uminus unix uplus upper
version vertcat vms
waitfor waitforbuttonpress warning what which who whos
xlate
zeros
/C3"Parameters"
axes
dir
figure findobj
gcbf gcbh gcbo gcf gco get get_param
image
light line
patch pwd
rectangle
set set_param sf surface
text
uicontextmenu uicontrol uimenu
/C4"Delimiters"
!
%
&
+
-
// /
<
=
>
\
^
{
|
}



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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值