Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Adding user-defined keywords

Adding user-defined keywords

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiotoolstutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RicoH
    wrote on last edited by
    #1

    In VC++ 6.0 you can find an item "user defined keywords" in the 'Tools - Options - Format' menu. I'm just woundering if this means you can supply your own list of keywords which the IDE should recognize...:confused: If so, I would really like to know how to define this list. Thankz... Don't think you are, know you are...

    I 1 Reply Last reply
    0
    • R RicoH

      In VC++ 6.0 you can find an item "user defined keywords" in the 'Tools - Options - Format' menu. I'm just woundering if this means you can supply your own list of keywords which the IDE should recognize...:confused: If so, I would really like to know how to define this list. Thankz... Don't think you are, know you are...

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      I just cut and pasted from a page in MSDN: mk:@MSITStore:C:\Program%20Files\Microsoft%20Visual%20Studio\MSDN\2001OCT\1033\vcug.chm::/html/_asug_set_syntax_coloring.htm[^] To set syntax coloring for user-defined keywords In the same directory as msdev.exe, use the Text editor or Windows Notepad to create a text-only file named usertype.dat. Add your keywords to usertype.dat, one keyword per line. Note The usertype.dat file is read during initialization. It cannot be renamed, nor can it be reloaded during an editing session. The syntax coloring mechanism checks the usertype.dat file last. Thus, all previously defined color settings take precedence over the user-defined keywords. Save the file as a text-only file, exit, and then restart Visual Studio. From the Tools menu, choose Options. Select the Format tab. In the Colors box, select User Defined Keywords. Set the font, font size, foreground color, and background color to your preferences. For more information, see To change colors used in syntax coloring. Click OK. ===================================== I hope that helped, Iain.

      R 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        I just cut and pasted from a page in MSDN: mk:@MSITStore:C:\Program%20Files\Microsoft%20Visual%20Studio\MSDN\2001OCT\1033\vcug.chm::/html/_asug_set_syntax_coloring.htm[^] To set syntax coloring for user-defined keywords In the same directory as msdev.exe, use the Text editor or Windows Notepad to create a text-only file named usertype.dat. Add your keywords to usertype.dat, one keyword per line. Note The usertype.dat file is read during initialization. It cannot be renamed, nor can it be reloaded during an editing session. The syntax coloring mechanism checks the usertype.dat file last. Thus, all previously defined color settings take precedence over the user-defined keywords. Save the file as a text-only file, exit, and then restart Visual Studio. From the Tools menu, choose Options. Select the Format tab. In the Colors box, select User Defined Keywords. Set the font, font size, foreground color, and background color to your preferences. For more information, see To change colors used in syntax coloring. Click OK. ===================================== I hope that helped, Iain.

        R Offline
        R Offline
        RicoH
        wrote on last edited by
        #3

        Aah... works like a charm :-D Thankz Don't think you are, know you are...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups