Share via


ColorClass Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies the default color classes that a character can take in the Babel Package language service. Used for syntax highlighting.

typedef long ColorClass; 
  
enum DefaultColorClass {
   ClassDefault     = 0,
   ClassText        = ClassDefault,
   ClassKeyword,
   ClassComment,
   ClassIdentifier,
   ClassString,
   ClassNumber,
   ClassDefaultLast = ClassNumber,
};

Elements

  • ClassDefault
    Use the default color supplied by Visual Studio.

  • ClassText
    Alternate definition for ClassDefault.

  • ClassKeyword
    Represents a reserved keyword (for example, in C++: for, if, or while).

  • ClassComment
    Represents a comment.

  • ClassIdentifier
    Represents a user-defined name for a method, variable, class, or namespace.

  • ClassString
    Represents a string, typically double-quoted. This can also be used for single-quoted strings (often called literals).

  • ClassNumber
    Represents any sequence of digits, possibly including binary, octal, and hexadecimal as well as decimal.

  • ClassDefaultLast
    Use ClassDefaultLast + 1 to add your own color classes.

Remarks

The default color classes are always available. If you do not require custom color classes for your language, then you can set the RequestStockColors registry entry to 1 and use these default values. Otherwise, implement the IBabelService::GetColorInfo Method method. For more information, see Babel Registry Information.

Requirements

Header: bableservice.idl

See Also

Reference

IBabelService::ColorCount Method

IBabelService::GetColorInfo Method

IColorSink::Colorize Method

Concepts

Babel Registry Information

Other Resources

Babel Enumerations