In This Article

ExampleTextProvider Class

Implements an object that returns example text, which can be displayed in an application to show how a language's code snippet is syntax-highlighted.

public class ExampleTextProvider : IExampleTextProvider
Inheritance:
object object
Implements:
IExampleTextProvider

Remarks

Instances of this object can be registered with an ISyntaxLanguage using the RegisterService(object, object) method. Once an instance is registered with the language for the IExampleTextProvider interface type, its features can be used by the language.

Constructors

ExampleTextProvider(string)

Implements an object that returns example text, which can be displayed in an application to show how a language's code snippet is syntax-highlighted.

public ExampleTextProvider(string exampleText)
Parameter Type Description
exampleText string

The example text, a code snippet of the related language.

Remarks

Instances of this object can be registered with an ISyntaxLanguage using the RegisterService(object, object) method. Once an instance is registered with the language for the IExampleTextProvider interface type, its features can be used by the language.

Properties

ExampleText

The example text, a code snippet of the related language.

public string ExampleText { get; set; }

Property Value

string

Inherited Members

Extension Methods