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.
Tip For any source file, you can use the Source File Properties page to specify which language syntax coloring to apply (or turn off syntax coloring altogether). For more information, see Setting Font Style, Size, and Color.
阅读(1727) | 评论(0) | 转发(0) |