codemirror 6中的自动完成的变量名称
我已经为CodeMirror 6(Backus-Naur表单)建立了语言支持扩展。它可以很好地用于语法突出显示。
但是,我希望CodeMirror自动完成用户已经定义的规则的名称。
我阅读了文档,但他们似乎只解释了如何自动完成一组固定建议。
API参考在其自动完成相关类/方法的文档方面也缺乏一些。
有人知道如何实施吗?
I've built a language support extension for CodeMirror 6 (Backus-Naur Form). It works just fine for syntax highlighting.
However, I'd like for CodeMirror to auto-complete the names of the rules the user has already defined.
I read the docs, but they only seem to explain how to autocomplete a fixed set of suggestions.
The API reference is also somewhat lacking in terms of its documentation on autocomplete-related classes/methods.
Does anyone know how to implement this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论