In This Article

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.

public IClassificationType Comment { get; }

Property Value

IClassificationType

Identifier

The Identifier classification type.

public IClassificationType Identifier { get; }

Property Value

IClassificationType

Keyword

The Keyword classification type.

public IClassificationType Keyword { get; }

Property Value

IClassificationType

Number

The Number classification type.

public IClassificationType Number { get; }

Property Value

IClassificationType

Operator

The Operator classification type.

public IClassificationType Operator { get; }

Property Value

IClassificationType

Punctuation

The Punctuation classification type.

public IClassificationType Punctuation { get; }

Property Value

IClassificationType

PythonSystemIdentifier

The PythonSystemIdentifier classification type.

public IClassificationType PythonSystemIdentifier { get; }

Property Value

IClassificationType

String

The String classification type.

public IClassificationType String { get; }

Property Value

IClassificationType

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

Extension Methods