Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Select symbol definition used for Syntax coloring
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kzeitz
Starting Member

1 Posts

Posted - Aug 19 2004 :  3:01:31 PM  Show Profile
I'm working on a project that uses some library code, that I'm not at liberty to change.

In that code someone decided that...
#define BOOL bool
was a good idea...

This has the annoying effect of changeing the highlighting for BOOL to the Macro color instead of the typedef color.

I could probably live with it if it only changed the color of the project that included the library, but since it is the last definition parsed it changes the highlighting for BOOL in all the projects in the solution. Yuk!

It would be nice to be able to select or specify which symbol definition is used.

support
Whole Tomato Software

5566 Posts

Posted - Aug 19 2004 :  5:52:34 PM  Show Profile
Our coloring algorithm assumes preprocessor macros have global scope. This is done for speed. Unfortunately, it creates the side effect you see. VA X colors BOOL like a macro everywhere.

Here is a workaround:
Exit your IDE.
Use Notepad to create usertype.dat in the folder in which devenv.exe exists.
Put BOOL on a line by itself in usertype.dat
Restart your IDE.
BOOL should be colored like a "User keyword", which is blue by default.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000