PythonClassificationTypeProvider Class
A provider of IClassificationType objects for the Python language.
public class PythonClassificationTypeProvider : ClassificationTypeProviderBase, IPythonClassificationTypeProvider
- Inheritance:
- object ClassificationTypeProviderBase object
- Implements:
- IPythonClassificationTypeProvider
Remarks
This type was generated by the Actipro Language Designer tool v26.1.0 (http://www.actiprosoftware.com).
Constructors
PythonClassificationTypeProvider()
Initializes an instance of the class.
public PythonClassificationTypeProvider()
PythonClassificationTypeProvider(IHighlightingStyleRegistry?)
Initializes an instance of the class.
public PythonClassificationTypeProvider(IHighlightingStyleRegistry? targetRegistry)
| Parameter | Type | Description |
|---|---|---|
| targetRegistry | IHighlightingStyleRegistry | The IHighlightingStyleRegistry to use when registering classification types and highlighting styles. |
Properties
Comment
The Comment classification type.
Identifier
The Identifier classification type.
Keyword
The Keyword classification type.
Number
The Number classification type.
Operator
The Operator classification type.
Punctuation
The Punctuation classification type.
PythonSystemIdentifier
The PythonSystemIdentifier classification type.
String
The String classification type.
Methods
CreateDarkColorPalette()
Creates a color palette of default colors for use with a dark theme.
protected override IHighlightingStyleColorPalette CreateDarkColorPalette()
Returns
- IHighlightingStyleColorPalette:
An IHighlightingStyleColorPalette instance representing the dark color palette.
Remarks
The default implementation of this method returns an empty DarkHighlightingStyleColorPalette instance, with the intention of the colors in the light color palette being adapted to dark colors automatically. Override this method to use specific dark colors instead of adapted colors.
CreateLightColorPalette()
Creates a color palette of default colors for use with a light theme.
protected override IHighlightingStyleColorPalette CreateLightColorPalette()
Returns
- IHighlightingStyleColorPalette:
An IHighlightingStyleColorPalette instance representing the light color palette.
RegisterAll()
Registers all classification types and highlighting styles with the IHighlightingStyleRegistry used by this class.
public override IEnumerable<IClassificationType> RegisterAll()
Returns
- IEnumerable<IClassificationType>:
The collection of IClassificationType objects that were registered.
Inherited Members
- ClassificationTypeProviderBase.GetOrRegisterClassificationType(IClassificationType, bool, bool, bool, LineKind, HighlightingStyleBorderCornerKind, bool, bool?, bool, bool?, LineKind, bool)
- ClassificationTypeProviderBase.GetOrRegisterTextClassificationType(IClassificationType, bool?, bool?, bool)
- ClassificationTypeProviderBase.DefaultDarkColors
- ClassificationTypeProviderBase.DefaultLightColors
- ClassificationTypeProviderBase.TargetRegistry
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()