Delphi2010中如何实现自动替换错别字
我正在寻找一种为 Delphi 2010IDE 开发插件的方法,但尚未找到有关该主题的任何信息,甚至没有找到有关如何开始的信息。
我想要完成的是某种自动拼写检查器,它可以给出常见拼写错误的列表(用 flase 代替 false,.cerate 代替 .create 等)并将其替换为想要的单词。
您是否知道有关插件开发的教程,或者我可以作为我的工作基础的开源插件?
I am looking for a way to develop a plugin for Delphi 2010IDE and have yet to find any information on that topic, not even on how to get started.
What I want to accomplish is some kind of auto-spellchecker wich can be given a list of common typos (flase instead of false, .cerate instead of .create and the like) and replace them with the intended word.
Do you know of a tutorial on plugin development, or maybe an open source plugin which i could base my work on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
GExperts 有一个 CodeProofreader 作为它的插件之一,它可以做我认为你想做的事情,它也是开源的,所以如果你确实想编写自己的插件,这可能是一个很好的起点。
GExperts has a CodeProofreader as one of it's plugins which would do what I think you want to do, it's also Open Source so if you do want to write your own that might be a good place to start.
您可以使用 Delphi 的实时模板来实现此目的,并将常见的拼写错误扩展为预期的短语。
You could use Delphi's Live Templates for this and have common typos expand into the intended phrase.