Click here to Skip to main content
Click here to Skip to main content

Syntax coloring for user-defined keywords in Visual Studio

, 20 Mar 2000
Rate this:
Please Sign up or sign in to vote.
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.


    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


    About the Author

    Keith Kudlac

    United States United States
    No Biography provided

    Comments and Discussions

    GeneralCool Tip! PinmemberJeremy Falcon18-Jun-03 6:15 
    GeneralReally cool, but... Pinsussmili21-Oct-02 6:19 
    GeneralSyntax coloring PinsussAnonymous29-Sep-02 0:55 
    GeneralRe: Syntax coloring PinmemberBenjamin.Mayrargue3-Feb-03 6:59 
    GeneralRe: Syntax coloring PinsussAnonymous28-Dec-03 9:08 
    GeneralRe: Syntax coloring PinmemberSteven Bristol6-Jan-05 2:24 
    GeneralHI Pinmember| mProject |12-Nov-01 18:14 
    QuestionCan we use multiple colours ? PinsussShahzad29-Jun-00 12:37 
    GeneralNice PinsussJohn Schroedl22-Mar-00 15:48 
    GeneralBroken link to file PinsussRay Hayes21-Mar-00 23:44 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Terms of Use | Mobile
    Web01 | 2.8.150327.1 | Last Updated 21 Mar 2000
    Article Copyright 2000 by Keith Kudlac
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid