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
 Custom keywords
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Eric Lengyel
New Member

3 Posts

Posted - Apr 26 2005 :  02:14:06 AM  Show Profile
I'd really like to see a feature added to the syntax coloring panel that allows me to specify a list of custom keywords and a custom color in which to draw them. This is one way in which the VA X syntax coloring is still less capable than some other products, such as the CodeWarrior IDE. I know that I can create a usertype.dat file to get more keywords colored like the language keywords, but I'm using that for other stuff.

It would also be nice to be able to specify a list of words to exclude from syntax coloring. There are a lot of header files that define single letter nested class types, and every time I use a variable of the same letter, it gets colored -- can get annoying.

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Apr 27 2005 :  3:33:35 PM  Show Profile
adding custom words has been discussed before. the main problem with this is working out how it would interact with the existing syntax highlighting rules, and which rule takes precidense.

i am happy to put in a feature request if a sensible plan can be thought up. unfortunately i cannot find the previous thread about this off hand.

when using variables if the variables are local then VA should know the difference and show them bold if you ask it to. ideally VA should be getting this right already.

zen is the art of being at one with the two'ness
Go to Top of Page

Andrew B
New Member

2 Posts

Posted - Jul 12 2005 :  7:01:08 PM  Show Profile
I'm new to this thread, and have 3 questions:

1) In which directory would I put this usertype.dat file?
2) How must I format this file?
3) Is this already is in the documentation available on-line? If so, where?

My reason for coming at this is a desire to see "bitand" coloured as a keyword, rather than as "&" or other operators are coloured.

Go to Top of Page

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jul 12 2005 :  10:02:33 PM  Show Profile
It is a feature of VS, not VA.
See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxtskDefiningKeywordsInVisualC.asp

Joe Pizzi
Go to Top of Page

Andrew B
New Member

2 Posts

Posted - Jul 13 2005 :  3:55:23 PM  Show Profile
Thanks! Now "bitand" is coloured just like the other C++ keywords!
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