MS Word 中的语法突出显示
是否可以为 MS Word 创建一个插件或加载项,允许选择一段文本,然后对其应用自定义“突出显示”功能。
我希望这一切都在 MS Word 中,而不是从另一个应用程序中剪切和过去。
如果可能的话,关于我在哪里可以找到有关如何执行此操作的方向的任何建议(使用 C# )
Is it possible to create a plugin or addin for MS Word that allows a section of text to be selected and then a custom "Highlighting" function to be applied to it.
I want this to all be within MS Word not a cut and past from another application.
If possible, any suggestions on where I could find some direction on how to do this ( using C# )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
VBA - Visual Basic for Applications 是在 Office 中执行此类工作的工具。它也保持独立。
显示操纵文本。
http://computerprogramming.suite101.com/article.cfm/introduction_to_vba_for_ms_word
VBA 教程:
http://jy.fridaynight.co.il/pages/dev/WordVBA。 php
一堆例子。
http://www.thezcorp.com/VBACodeSamples.aspx
聚宝盆:
http://www.java2s.com/Code/ VBA-Excel-Access-Word/CatalogVBA-Excel-Access-Word.htm
现在您也知道要搜索什么了,希望您已经上路了。
编辑:找到这个代码示例:
HTH
VBA - Visual Basic for Applications is your tool for this type of work in Office. It stays self-contained as well.
Shows manipulating text.
http://computerprogramming.suite101.com/article.cfm/introduction_to_vba_for_ms_word
VBA Tutorial:
http://jy.fridaynight.co.il/pages/dev/WordVBA.php
Bunch of examples.
http://www.thezcorp.com/VBACodeSamples.aspx
A Cornucopia:
http://www.java2s.com/Code/VBA-Excel-Access-Word/CatalogVBA-Excel-Access-Word.htm
Now that you know what to search for as well, hopefully you are on your way.
EDIT: Found this code example:
HTH