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 $debug $else $end $endinput $if $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

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

来自专栏大内老A

The .NET of Tomorrow

Ed Charbeneau(http://developer.telerik.com/featured/the-net-of-tomorrow/) Exciti...

32210
来自专栏陈仁松博客

ASP.NET Core 'Microsoft.Win32.Registry' 错误修复

今天在发布Asp.net Core应用到Azure的时候出现错误InvalidOperationException: Cannot find compilati...

4878
来自专栏张善友的专栏

Mix 10 上的asp.net mvc 2的相关Session

Beyond File | New Company: From Cheesy Sample to Social Platform Scott Hansel...

2617
来自专栏跟着阿笨一起玩NET

c#实现打印功能

2872
来自专栏张善友的专栏

Silverlight + Model-View-ViewModel (MVVM)

     早在2005年,John Gossman写了一篇关于Model-View-ViewModel模式的博文,这种模式被他所在的微软的项目组用来创建Expr...

3008
来自专栏一个爱瞎折腾的程序猿

sqlserver使用存储过程跟踪SQL

USE [master] GO /****** Object: StoredProcedure [dbo].[sp_perfworkload_trace_s...

2110
来自专栏张善友的专栏

Miguel de Icaza 细说 Mix 07大会上的Silverlight和DLR

Mono之父Miguel de Icaza 详细报道微软Mix 07大会上的Silverlight和DLR ,上面还谈到了Mono and Silverligh...

2717
来自专栏java 成神之路

使用 NIO 实现 echo 服务器

4787
来自专栏闻道于事

js登录滑动验证,不滑动无法登陆

js的判断这里是根据滑块的位置进行判断,应该是用一个flag判断 <%@ page language="java" contentType="text/html...

7068
来自专栏我和未来有约会

Kit 3D 更新

Kit3D is a 3D graphics engine written for Microsoft Silverlight. Kit3D was inita...

2606

扫码关注云+社区