Ultraedit 中模板工具包的语法高亮

发布于 2024-08-23 21:25:52 字数 53 浏览 7 评论 0原文

有人成功创建了一个有效的“wordfile”吗?我已经尝试过,但无法突出显示 [% 和 %]

Have anyone succesfully created a "wordfile" that works? I've tried but i can't get it to highlight [% and %]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世界等同你 2024-08-30 21:25:52

我太晚了,无法回答这个问题,只是在寻找有关我的 wordfile 问题的帮助,并遇到了您未回答的问题。在与我的单词文件战斗了几个小时之后,我认为现在应该很容易完成,所以这是一个我能够突出显示您的特殊“单词”的单词文件:

/L19"Test" nocase Line Comment = ! String Chars = '" File Extensions = test
/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 = ~!@^&*()_-+=|\/{}:;"'<> , .?
/C1 Colors = 8421376 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
%]
[%

可能有很多您不关心的东西,特殊的东西我发现:

  1. 不同颜色的行似乎必须按第一个字符排序,并且每个新字符应该在新行上。
  2. 由于您试图将特殊字符作为单词,因此我将它们从“分隔符”行中删除了 - 也许这是一个问题。
  3. 保存 uew 文件时,请确保换行符对于您正在使用的操作系统是正确的,我开始使用的文件是一个 unix 文件,而我正在 Windows 盒子上工作。一旦我保存了将行结尾转换为窗口的文件,它就完美地工作了。

嗯,很抱歉这么晚才回答你的问题。我通常不看 UltraEdit 标签,但确实喜欢这个工具。

I am much too late to answer this, just was looking for some help with my wordfile problem and came across your unanswered question. After fighting several hours with my wordfile I thought this should be fairly easy to complete now, so here is a wordfile I was able to get working to highlight your special "words":

/L19"Test" nocase Line Comment = ! String Chars = '" File Extensions = test
/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 = ~!@^&*()_-+=|\/{}:;"'<> , .?
/C1 Colors = 8421376 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
%]
[%

Probably lots in there you don't care about, special things I came across:

  1. It appears the lines for the different colors have to be sorted by the first character and each new character should be on a new line.
  2. Since you are trying to put special characters as words, I removed them from the "Delimiters" line - maybe this is a problem.
  3. When saving the uew file, make sure the newline character is correct for the OS you are working on, the file I started with was a unix file and I am working on a windows box. Once I saved my file converting the line endings to windows, it worked perfectly.

Well, sorry for being so late to answer your question. I don't normally watch the UltraEdit tag, but do like the tool.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文