Export (0) Print
Expand All

IVsColorizer Interface

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

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

public interface IVsColorizer

The IVsColorizer type exposes the following members.

Public methodCloseColorizerReleases any references held on a VsTextBuffer object.
Public methodColorizeLineColorizes the given text.
Public methodGetStartStateDetermines the state in which colorization of the first line of the buffer should begin.
Public methodGetStateAtEndOfLineDetermines the end-of-line state for a given line.
Public methodGetStateMaintenanceFlagReturns the state maintenance requirement for the colorizer.

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 Syntax Coloring.

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.

© 2015 Microsoft