Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 syntax highlighting for custom words

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
raff Posted - Nov 14 2016 : 07:43:23 AM
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!
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Nov 15 2016 : 4:04:36 PM
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
raff Posted - Nov 15 2016 : 06:07:54 AM
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!
feline Posted - Nov 14 2016 : 2:36:59 PM
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?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000