In This Article

SyntaxLanguageDefinitionSerializer Class

Provides a class that can deserialize a SyntaxLanguage from XML.

public class SyntaxLanguageDefinitionSerializer
Inheritance:
Object Object

Constructors

SyntaxLanguageDefinitionSerializer()

public SyntaxLanguageDefinitionSerializer()

Properties

HighlightingStyleRegistry

Gets or sets the custom IHighlightingStyleRegistry that should be used.

public IHighlightingStyleRegistry HighlightingStyleRegistry { get; set; }

Property Value

IHighlightingStyleRegistry:

The custom IHighlightingStyleRegistry that should be used.

Remarks

If this property is null, the AmbientHighlightingStyleRegistry will be used.

Methods

InitializeFromFile(ISyntaxLanguage, String)

Initializes an existing ISyntaxLanguage from a language definition file.

public void InitializeFromFile(ISyntaxLanguage language, string path)
Parameter Type Description
language ISyntaxLanguage

The existing ISyntaxLanguage to initialize.

path String

The full path to the file.

InitializeFromStream(ISyntaxLanguage, Stream)

Initializes an existing ISyntaxLanguage from a language definition Stream.

public void InitializeFromStream(ISyntaxLanguage language, Stream stream)
Parameter Type Description
language ISyntaxLanguage

The existing ISyntaxLanguage to initialize.

stream Stream

The Stream from which to load.

LoadFromFile(String)

Loads an ISyntaxLanguage from a language definition file.

public ISyntaxLanguage LoadFromFile(string path)
Parameter Type Description
path String

The full path to the file.

Returns

ISyntaxLanguage:

The ISyntaxLanguage that was loaded.

LoadFromStream(Stream)

Loads an ISyntaxLanguage from a language definition Stream.

public ISyntaxLanguage LoadFromStream(Stream stream)
Parameter Type Description
stream Stream

The Stream from which to load.

Returns

ISyntaxLanguage:

The ISyntaxLanguage that was loaded.

Inherited Members