![]() |
Chapter 7 | ![]() |
First, lets start out with locating where colors are set; go to Tools Options, and select 'Format' from the resultant tab dialog.
Playing around with this tab will let you alter colors to your heart's content.
Now lets get serious - user defined keywords. Wouldn't it be great if ACMD, or CREATE were highlighted so we can see them in a block of code? How about common structures or commands like 'send_to_char()', 'act()', and 'char_data'?
Here's how you go about it. Locate the msvc.exe (pre version 5 visual studio) or msdev.exe (version 5 or later) binary and use a text editor to create a file in that same directory called 'usertype.dat'. Enter in your keywords, one per line, case sensitive, into the file and save it.
Now, start up MSVC, go to Tools Options, and select 'Format', and in the 'Colors' box, select 'User Defined Keywords'. Go ahead
and set up your colors and font sizes, click 'ok', and then close and restart MSVC for your changes to take effect.
Why would you like to use color? Simple; color coding helps you pick out errors, misspellings and other syntax problems.
![]() |
Index | ![]() |
7.1.1 Precompiled Headers | 7.1.3 The Incredible, Inedible Class Browser |