UtraEdit 支持Lua高亮
UtraEdit 支持Lua高亮,网上已经有很多方法,但是都是基于相对老一点的
UE,在15.10版本中,UE支持Lua高亮的方法如下:
从网上Down下支持Lua的wordfiles,lua.uew
新建一个目录如D:\wordfiles,
将UE安装目录下的所有wordfiles文件都复制到D:\wordfiles,再将自己的lua.uew拷贝到此,
设置UE 高级-》配置-》编辑器显示-》语法高亮
将”文档的完整目录名称“一项改成D:\wordfiles
确定即可生效。
网上的Lua对require和for好像没有支持可以自己添加高亮关键字:
如下是我的Lua wordfiles文件:
/L20"Lua" Line Comment = -- Block Comment On = [[ Block Comment Off = ]] String Chars = "' Escape Char = \ File Extensions = LUA BIN
/Colors = 0,8421376,8421376,8421504,255,
/Colors Back = 16777215,16777215,16777215,16777215,16777215,
/Colors Auto Back = 1,1,1,1,1,
/Font Style = 0,0,0,0,0,
/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> , .?
/Function String 1 = "function[ ]++[a-zA-Z]*)"
/Function String 2 = "function[ ]++([ a-zA-Z]*)"
/Open Fold Strings = "function" "if" "while" "for"
/Close Fold Strings = "end"
/C1 "key words" Colors = 16711680 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
and
break
do
else
elseif
end
function
require
if in
local
nil not
or
repeat return
then
until
while
for
/C2 Colors = 255 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
abs acos appendto ascii asin assert atan atan2
call ceil clock collectgarbage copytagmethods cos
date deg dofile dostring
error execute exit
false find floor foreach foreachvar format frexp
getbinmethod getenv getglobal gettagmethod gfind gmatch gsub
insert ipairs
ldexp log log10
match max min mod
newtag next nextvar
os
pairs print
rad random randomseed rawgetglobal rawgettable rawsetglobal rawsettable read
readfrom remove rename
seterrormethod setglobal setlocale settag settagmethod sin sqrt strbyte sub
strchar strfind string strlen strlower strrep strsub strupper
table tag tan tmpname tonumber tostring true type
write writeto
/C3 Colors = 33023 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
else
endinput
ifnot
$nodebug
/C4 Colors = 32768 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
PI
_INPUT _OUTPUT _STDERR _STDIN _STDOUT
/C5 Colors = 4210816 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
+
-
*
// /
^
<
>
=
~
%
.
:
/C6 Colors = 16711680 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
;
,
(
)
{
}
[
]
/C7 Colors = 16711680 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
cgi cgilua cgilua_url char2hexa chdir
dbluaerrorfb dblua_escape decode default_script
encodecgi encodetable escape
filetype
getvalue
hexa hexa2char html_mask
includehtml insertfield
lua_mask
maketable map mkurl
nopipe
preprocess
redirect relativeurl relative_url
saveluavar savestate script_path script_pdir script_vdir stateerrormethod
statefile stdin strsplit
unescape
/C8 Colors = 16711680 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
DBClose DBExec DBOpen DBRow
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?