用于自定义词法分析器的 Scintilla 折叠
我正在使用 ScintillaNET 包装器作为 Scintilla 控件,并希望实现 ASM 的折叠,因此我查找了 http://sphere.sourceforge.net/flik/docs/scintilla-folding.html 了解如何操作的参考。由于我以前从未使用过 C++,因此在尝试理解它时遇到了很多问题。当它说注册边距点击事件时,我在哪里以及如何注册它?另外,当它说为词法分析器设置一些属性时,具体在哪里以及如何设置它们?
我尝试向 scintilla 兴趣小组询问,但没有从那里得到任何帮助。如果有人在 scintilla 中为自己的词法分析器设置了折叠,请帮助了解如何实现它,我们将不胜感激。谢谢。
I am using the ScintillaNET wrapper for the Scintilla control and want to implement folding for ASM so I looked up http://sphere.sourceforge.net/flik/docs/scintilla-folding.html for reference on how to do it. Since I have never worked with C++ before, I am having a lot of problems trying to understand it. When it says register the margin click event, where and how do I register it? Also, when it says set some properties to the lexer, where exactly and how do I set them?
I tried asking at the scintilla interest group but I didn't get any help from there. If someone has set up folding for their own lexer in scintilla, help on how do implement it would be appreciated. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
同时还有一个包含折叠功能的 LexASM 可供使用:
http://groups.google.com/group/scintilla-interest/browse_thread /线程/aa56b57bc71e43ac
它是 Scintilla/SciTE 下一版本 (2.25) 的一部分。
数据中心
Meanwhile there is a LexASM with folding included available:
http://groups.google.com/group/scintilla-interest/browse_thread/thread/aa56b57bc71e43ac
It's part of next version (2.25) of Scintilla/SciTE.
dlchnr