如何在VSPackages中创建文本/行标记? (VS 2005-C#) [英] How to create a Text/Line Marker in VSPackages? (VS 2005 - C#)
本文介绍了如何在VSPackages中创建文本/行标记? (VS 2005-C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用C#语言开发VS软件包.
我想创建一个textMarker,在其下方加划线(以特定颜色显示)在代码编辑器中.
我在IVSTextLines接口下找到了一个具有CreateLineMarker功能的方法.我找不到足够的文档来帮助我一步一步地创建行/文本标记.
有人可以帮助我编写代码或在代码编辑器中为文本加上下划线的步骤吗?
感谢,
Nayana
Hi,
I am developing a VS Package using C# language.
I want to create a textMarker where it underlines( in a particular color) a part of sentence in the code editor.
I found a method under IVSTextLines interface which has CreateLineMarker function. I couldn't find sufficient documentation which could help me create a Line/Text Marker step by step.
Can anyone help with code or steps which can help me underline text in the code editor?
Thanks,
Nayana
推荐答案
工具窗口中的托管代码编辑器 -包含IVSTextLines的示例.
如何实现自定义文字标记?
如何:添加标准文本标记
这篇关于如何在VSPackages中创建文本/行标记? (VS 2005-C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文