Author |
Topic |
|
raff
New Member
4 Posts |
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! |
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
|
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 |
|
|
raff
New Member
4 Posts |
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
Whole Tomato Software
United Kingdom
19022 Posts |
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 |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|
|
|