How to: Use Built-In Colorable Items
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

How to: Use Built-In Colorable Items

Before you use the built-in colorable items, you must first signal to the integrated development environment (IDE) that you are not providing your own custom colorable items, which in this case would be IVsProvideColorableItems objects. You do this by setting a registry entry for the language service.

To use built-in colorable items

  1. Under HKEY_LOCAL_MACHINE\VisualStudio\X.Y\Languages\Language Services\Language Name, where X.Y is a version of Visual Studio and Language Name is the name of your language, create a DWORD registry entry value called RequestStockColors.

  2. Set the RequestStockColors registry entry value to 1.

    After you create the registry entry, your colorizer's ColorizeLine method can use the members of the DEFAULTITEMS enumeration to fill in the array of color attributes for use by the editor.


    Do not set this registry entry if you are providing custom colorable items. For more information, see Custom Colorable Items.

© 2016 Microsoft