Click here to Skip to main content
13,194,103 members (51,334 online)
Click here to Skip to main content
Add your own
alternative version


32 bookmarked
Posted 20 Mar 2000

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 <a href=''UserType/'>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

    You may also be interested in...

    Comments and Discussions

    GeneralCool Tip! Pin
    Jeremy Falcon18-Jun-03 5:15
    memberJeremy Falcon18-Jun-03 5:15 
    GeneralReally cool, but... Pin
    mili21-Oct-02 5:19
    sussmili21-Oct-02 5:19 
    GeneralSyntax coloring Pin
    Anonymous28-Sep-02 23:55
    sussAnonymous28-Sep-02 23:55 
    GeneralRe: Syntax coloring Pin
    Benjamin.Mayrargue3-Feb-03 5:59
    memberBenjamin.Mayrargue3-Feb-03 5:59 
    GeneralRe: Syntax coloring Pin
    Anonymous28-Dec-03 8:08
    sussAnonymous28-Dec-03 8:08 
    GeneralRe: Syntax coloring Pin
    Steven Bristol6-Jan-05 1:24
    memberSteven Bristol6-Jan-05 1:24 
    GeneralHI Pin
    | mProject |12-Nov-01 17:14
    member| mProject |12-Nov-01 17:14 
    QuestionCan we use multiple colours ? Pin
    Shahzad29-Jun-00 11:37
    sussShahzad29-Jun-00 11:37 
    GeneralNice Pin
    John Schroedl22-Mar-00 14:48
    sussJohn Schroedl22-Mar-00 14:48 
    GeneralBroken link to file Pin
    Ray Hayes21-Mar-00 22:44
    sussRay Hayes21-Mar-00 22:44 
    GeneralRe: Broken link to file Pin
    Bill Steven5-Sep-01 17:33
    memberBill Steven5-Sep-01 17:33 
    GeneralRe: Broken link to file Pin
    Ravi Bhavnani25-Oct-01 6:55
    memberRavi Bhavnani25-Oct-01 6:55 

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

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

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