This topic has not yet been rated - Rate this topic

IVsColorizer Interface

Implemented by the language client to assign color attributes (indexes) to a span of text.

Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in microsoft.visualstudio.textmanager.interop.dll)

[InterfaceTypeAttribute(1)] 
[GuidAttribute("6698EF11-FF17-441C-8C5D-BC24A339B37D")] 
public interface IVsColorizer
/** @attribute InterfaceTypeAttribute(1) */ 
/** @attribute GuidAttribute("6698EF11-FF17-441C-8C5D-BC24A339B37D") */ 
public interface IVsColorizer
InterfaceTypeAttribute(1) 
GuidAttribute("6698EF11-FF17-441C-8C5D-BC24A339B37D") 
public interface IVsColorizer

See illustrations of the implementation and/or calling of this interface in the sample Figures Language Service Sample.

Notes to Implementers Implement this interface when you wish to support syntax colorization. IVsColorizer should be implemented on a separate object in your language service. For more information, see Providing a Syntax Coloring Service.

Notes to Callers This interface is obtained by calling the GetColorizer method in the IVsLanguageInfo interface. An editor obtains the IVsColorizer object from the language service to provide support for syntax highlighting. The language service itself may use its own colorizer to aid in support of more complex features such as the IntelliSense member completion lists and brace matching.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ