让UltraEdit 支持Lua的语法高亮显示
2016-06-20 00:00
537 查看
其实很简单,但如像我一样不怎么用UltraEdit的朋友们来说,可能不太清楚。首先去UltraEdit的官网下载支持Lua的Wordfiles文件(
这里),是个文本文件(lua.txt)。打开UltraEdit安装目录下的wordfile.txt,把lua.txt文件中的内容拷贝粘贴到wordfile.txt的末尾,存盘,OK
,于是UltraEdit语法高亮项多出Lua一项,可以选择使用了。其他语言的语法高亮支持与此类似。
这里),是个文本文件(lua.txt)。打开UltraEdit安装目录下的wordfile.txt,把lua.txt文件中的内容拷贝粘贴到wordfile.txt的末尾,存盘,OK
,于是UltraEdit语法高亮项多出Lua一项,可以选择使用了。其他语言的语法高亮支持与此类似。
/L14"Lua" Line Comment = -- Block Comment On = --[[ Block Comment Off = ]] Escape Char = \ String Chars = "' File Extensions = LUA BIN /Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> , .? /Function String = "%[a-zA-Z]*)" /Function String 1 = "%[a-zA-Z_0-9]*::^([a-zA-Z_0-9^~]+^)[ ^t]++([^p*&, ^t^[^]/*=:&a-zA-Z_0-9.]++)[~;]" /Function String 2 = "%[a-zA-Z_0-9]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9.]++)[~;]" /Function String 3 = "%[a-zA-Z_0-9"]* ^([a-zA-Z_0-9"]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9.]++)[~;]" /Function String 4 = "%[a-zA-Z_0-9*&$]+[ ^t]+[a-zA-Z_0-9*&$]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9.]++)[~;]" /Function String 5 = "%^([a-zA-Z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9.]++)[~;]" /Function String 6 = "%^([a-zA-Z_0-9]+^)[ ^t]+([^p*&, ^t^[^]a-zA-Z_0-9.]++)[~;]" /C1 "key words" and do else elseif end function if local nil not or repeat return then until while /C2 abs acos appendto ascii asin assert atan atan2 call ceil clock collectgarbage copytagmethods cos date deg dofile dostring error execute exit floor foreach foreachvar format frexp getbinmethod getenv getglobal gettagmethod gsub ldexp log log10 max min mod newtag next nextvar print rad random randomseed rawgetglobal rawgettable rawsetglobal rawsettable read readfrom remove rename seterrormethod setglobal setlocale settag settagmethod sin sqrt strbyte strchar strfind strlen strlower strrep strsub strupper tag tan tmpname tonumber tostring type write writeto /C3 $debug $else $end $endinput $if $ifnot $nodebug /C4 PI _INPUT _OUTPUT _STDERR _STDIN _STDOUT /C5 + - * // / ^ < > = ~ % . : /C6 ; , ( ) { } [ ] .. ... /C7 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 DBClose DBExec DBOpen DBRow
相关文章推荐
- Lua 5.0 参考手册
- 让UltraEdit 支持Lua的语法高亮显示
- Lua入门教程 6.迭代器与泛型for
- C与lua交互
- lua 读取lua文件
- Evaluate Reverse Polish Notation
- lua web 开发
- lua web开发中的一些基本知识
- lua 网址大全
- 配置相关
- 编译lua,以及c和lua交叉使用
- Lua自己实现string.split功能
- Lua中基本的数据类型、表达式与流程控制语句讲解
- 解析Lua中的全局环境、包、模块组织结构
- 深入解读Lua中迭代器与泛型for的使用
- Lua自己实现string.split功能
- Lua中函数与面向对象编程的基础知识整理
- Lua的table库函数insert、remove、concat、sort详细介绍
- LUA string库详解
- Lua里实现将Table转为String输出,Debug神器