开发者

ScintillaNET : Regex keywords, non-alphanumerical keywords

I'd first l开发者_JAVA技巧ike to know if it's possible to include keyword containing non-alphanumerical characters? Like @help or +test

Second, is it possible to use regex or wildcards with keywords? Like I'd like to color matches for @\w*

Thank you very much.


Wow... no one has answered this in over a year? The answer is yes... you can. I don't know scintilla, but most regex engines allow you to use a backslash to "escape" the character:

\@help
\+test

I've recently encountered a case where the regex engine does not allow escaping of all special characters. In that case, you can usually enclose the character within square brackets:

[@]help
[+]test

I'd wish you luck, but you've probably already figured this out or moved on at this point.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜