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)
Initializes a new instance of the ExampleTextProvider
class.
public ExampleTextProvider(string exampleText)
Parameter | Type | Description |
---|---|---|
exampleText | string | The example text, a code snippet of the related language. |
Properties
ExampleText
Gets or sets the example text, a code snippet of the related language.