如何在 mcedit 中突出显示注释?
我需要使用语法文件突出显示 mcedit 上的注释。 一行注释以“--”开头,可以以“\n”或“--”结尾。 我负责注释的语法文件内容如下:
context -- \n brown
spellcheck
context /\* \*/ brown
spellcheck
一行注释的示例如下:
-- This line starts with comment
this is code -- This is another comment, which ends with '\n'
this is another code -- This is another comment, which ends with '--' -- this is another code after comment
如何突出显示可能以“\n”或“--”结尾的一行注释?
I need to highlight comments on mcedit using syntax file.
One line comment begins with "--" and may end with "\n" or with "--".
My syntax file content which responsible for comments is following:
context -- \n brown
spellcheck
context /\* \*/ brown
spellcheck
Example of one line comments is here:
-- This line starts with comment
this is code -- This is another comment, which ends with '\n'
this is another code -- This is another comment, which ends with '--' -- this is another code after comment
How to highlight one line comment that may end with "\n" or with "--"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题可能更适合超级用户,但是:
基于手册页,我会尝试:
This question is probably more suited to superuser, however:
Based on the man page, I would try: