Class SyntaxColorisationDescriptorSyntaxColorisation
Provides syntax colorization for .syntaxcolor descriptor files.
public sealed class SyntaxColorisationDescriptorSyntaxColorisation : ISyntaxColorisation
- Inheritance
-
SyntaxColorisationDescriptorSyntaxColorisation
- Implements
- Inherited Members
- Extension Methods
Properties
FileExtensions
Gets the file extensions supported by this colorization profile.
public IReadOnlyList<string> FileExtensions { get; }
Property Value
Instance
Gets a singleton profile instance.
public static SyntaxColorisationDescriptorSyntaxColorisation Instance { get; }
Property Value
StringSyntaxExtensions
Gets the StringSyntaxAttribute names supported by this profile.
public IReadOnlyList<string> StringSyntaxExtensions { get; }
Property Value
Methods
GetClassification(IEnumerable<string>)
Gets the Visual Studio classification name for a grammar rule path. The path must be ordered from parent rule to most specific rule.
public string? GetClassification(IEnumerable<string> rulePath)
Parameters
rulePathIEnumerable<string>Ordered rule path from root to leaf.
Returns
GetClassification(string)
Gets the Visual Studio classification name for a single grammar rule.
public string? GetClassification(string ruleName)
Parameters
ruleNamestringGrammar rule name.