by Mofi » Fri Oct 08, 2004 9:41 am
Never seen a velocity file, but after looking into the wordfile I know, why the first is highlighted and the rest not.
The '!', '}' and '{' are word delimiting characters defined at /Delimiters=.
In color group 4, you find the line ** $, which means, highlight all words starting with '$', which is possible because '$' is not a word delimiting character.
So the first one is OK, because this is the word "$myVar".
The second one is not highlighted, because UE interprets it as word "$" and word "myVar". The '!' is delimiting it into two words.
The third one is highlighted, because of the same reason as first one. I tested it. Have you written it correct in your post?
The last example is not highlighted, because UE interprets it as word "$" and word "myVar". The '{' is delimiting it into two words.
If you really need, that your variable is highlighted on all 4 examples, you have to remove '!', '{' and '}' from the delimiters definition and modify color 4 to:
/C4"Methods"
** !$ $ ${
Don't know, if it is a good idea to remove '!', '{' and '}' from the delimiters definition. Estimate, it isn't.
Better you add your variables to section /C4 manuelly.