Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Syntax coloring for user-defined keywords in Visual Studio

0.00/5 (No votes)
20 Mar 2000 1  
A UserType.dat file that provides syntax coloring for user-defined keywords in Visual Studio
  • Download source files - 180 Kb
  • Visual Studio allows you to specify your own keywords for syntax coloring. You simply need to provide a file called UserType.dat. This file should contain each keyword you want highlighted, with each keyword on a separate line.

    Place the file in the same directory as msdev.exe, and then in Visual Studio go to Tools | Options and select the Format tab.

    Visual Studio Options Dialog

    Select "User Defined Keywords" and set the foreground and background colors to whatever you want. Once this is done, all words in your UserType.dat file will be highlighted in your edit windows.

    The UserType.dat file provided here contains contains all the main symbols used by MFC, including Windows functions, constants, messages IDs, styles, MFC classes, member functions.

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here