为什么ue编写完代码不变颜色,也没法设置高亮颜色。里边只有语言1-20没有java之类的。
展开全部
1. 用UE打开UE安装目录下的wordfile.uew文件; 2. 仿照前面语言高亮示例添加自己的语言; 具体方法如下
在wordfile.uew文件最后加入以下代码:
/L14"PCL" PCL_LANG /Line Comment = #
/Block Comment On = /* Block Comment Off = */ Escape Char = \ File Extensions = PCL SES /Delimiters = ~!%@^&*()-+=|\/{}[]:;"' <> , .?
/Function String = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]+([^p*&:, ^t^[^]a-zA-Z_0-9.!]++)[~;]" /Function
String
1
=
"%[a-zA-Z_0-9*]*::^([a-zA-Z_0-9^~]+^)[
^t^p]++([^p*&:,
^t^[^]/*^-'=:&a-zA-Z_0-9./(!]++)[~;]"
/Function String 2 = "%[a-zA-Z_0-9][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*&$^[^]*]+[ ^t]+[a-zA-Z_0-9*&$^[^]]+[
^t*]+^([a-zA-Z_0-9]+^)[
^t]++([^p*&:,
^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function
String
4
=
"%[a-z_0-9^[^]*]++
在wordfile.uew文件最后加入以下代码:
/L14"PCL" PCL_LANG /Line Comment = #
/Block Comment On = /* Block Comment Off = */ Escape Char = \ File Extensions = PCL SES /Delimiters = ~!%@^&*()-+=|\/{}[]:;"' <> , .?
/Function String = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]+([^p*&:, ^t^[^]a-zA-Z_0-9.!]++)[~;]" /Function
String
1
=
"%[a-zA-Z_0-9*]*::^([a-zA-Z_0-9^~]+^)[
^t^p]++([^p*&:,
^t^[^]/*^-'=:&a-zA-Z_0-9./(!]++)[~;]"
/Function String 2 = "%[a-zA-Z_0-9][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*&$^[^]*]+[ ^t]+[a-zA-Z_0-9*&$^[^]]+[
^t*]+^([a-zA-Z_0-9]+^)[
^t]++([^p*&:,
^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function
String
4
=
"%[a-z_0-9^[^]*]++
追问
这个文件夹里是有很长很长的代码的那个文件夹吗,我的是win10系统
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询