Click here to Skip to main content
11,486,673 members (70,260 online)
Click here to Skip to main content

Syntax coloring for user-defined keywords in Visual Studio

, 20 Mar 2000 90.6K 936 32
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.

    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

    Share

    About the Author

    Keith Kudlac

    United States United States
    No Biography provided

    Comments and Discussions

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

    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.150520.1 | Last Updated 21 Mar 2000
    Article Copyright 2000 by Keith Kudlac
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid