Click here to Skip to main content
Licence 
First Posted 20 Mar 2000
Views 78,640
Bookmarked 29 times

Syntax coloring for user-defined keywords in Visual Studio

By | 20 Mar 2000 | Article
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

    About the Author

    Keith Kudlac



    United States United States

    Member



    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    GeneralCool Tip! PinmemberJeremy Falcon5:15 18 Jun '03  
    GeneralReally cool, but... Pinsussmili5:19 21 Oct '02  
    GeneralSyntax coloring PinsussAnonymous23:55 28 Sep '02  
    GeneralRe: Syntax coloring PinmemberBenjamin.Mayrargue5:59 3 Feb '03  
    GeneralRe: Syntax coloring PinsussAnonymous8:08 28 Dec '03  
    GeneralRe: Syntax coloring PinmemberSteven Bristol1:24 6 Jan '05  
    GeneralHI Pinmember| mProject |17:14 12 Nov '01  
    QuestionCan we use multiple colours ? PinsussShahzad11:37 29 Jun '00  
    GeneralNice PinsussJohn Schroedl14:48 22 Mar '00  
    GeneralBroken link to file PinsussRay Hayes22:44 21 Mar '00  
    GeneralRe: Broken link to file PinmemberBill Steven17:33 5 Sep '01  
    GeneralRe: Broken link to file PinmemberRavi Bhavnani6:55 25 Oct '01  

    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.

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