用于自定义词法分析器的 Scintilla 折叠

发布于 2024-10-03 18:10:50 字数 421 浏览 0 评论 0原文

我正在使用 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 技术交流群。

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

发布评论

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

评论(1

指尖上得阳光 2024-10-10 18:10:50

同时还有一个包含折叠功能的 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

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