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
 syntax highlighting for custom words
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

raff
New Member

4 Posts

Posted - Nov 14 2016 :  07:43:23 AM  Show Profile  Reply with Quote
Hi,

Would it be possible to add specific custom words to be highlighted?

For example, I want to highlight the words MARKER_START, MARKER_END which are "important" in my source code. Example:

void myfunction()
{
MARKER_START

printf(".....");

MARKER_END
}

I'd like to change the color for each different "important" word that I'm using in my source code.

Thanks for this great software!

Edited by - raff on Nov 14 2016 07:44:31 AM

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Nov 14 2016 :  2:36:59 PM  Show Profile  Reply with Quote
How are these important words defined? Are these #define macros, or something else? Are these being coloured at all in your code? There are a couple of existing methods to get these coloured, but that is by telling VA that these marker strings are macros or functions, or some other known type. This would give them colour, but not a unique colour.

Approximately how many of these markers do you have, so how many different colours are you looking for?

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

raff
New Member

4 Posts

Posted - Nov 15 2016 :  06:07:54 AM  Show Profile  Reply with Quote
Hi,

Thanks for the hint. Yes, I think that I can be fine "cheating" the syntax colors defining those special words as Macros, structs, etc.

Thanks!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Nov 15 2016 :  4:04:36 PM  Show Profile  Reply with Quote
In addition to defining the keywords as macros or struct's, you can also tell the IDE to treat them as keywords, as explained here:

https://msdn.microsoft.com/en-us/library/zy61y8b8(v=vs.140).aspx

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000