05-10-2009 06:11 AM
It would be nice if the macros provided by the utility library such as InitializeVariableName () etc. could be color coded. Right now this does not seem to work because 'Initialize' would need a space after it to be color coded. On the other hand, it is quite a little bit confusing if macros can not be detected easily. Usually, I would search for a function such as GetPointerToMyVariable () - and not find anything... There does not seem to be a possibility to find out; 'GoTo Definition', 'Browse for Identifier' etc. do not work... - at least I could not find it...
Did I miss it or could it be added to the wish list?
Thanks, Wolfgang
05-15-2009 01:05 PM
Hi Wolfgang,
you can define your own terms for highlighting: Options -> User Defined Tokens for Coloring
But I'm not sure if I understand your question right.
Can you please explain it a little bit more in detail. - Maybe a screenshot says more than 1000 words.
Which version of CVI do you use?
Thank you and have a nice weekend.
With best regards
Ralf N.
Applications Engineering
Germany
05-15-2009 02:53 PM
Hi Ralf,
thanks for looking at this, and sorry for being unclear.
First, I am using CVI 9.0, and since few days 9.0.1 🙂
Yes, I was referering to the syntax coloring of the editor 'Options -> User Defined Tokens for Coloring'
what you can do here is to color a token such as 'HANDLE'; what seems impossible to do (and probably I should file a suggestion on the wish list, but I keep forgetting the link) is to color/highlight a macro such as 'InitializeVariableName' which is a composite of 'Initialize' and a variable name 'VariableName'. Right now, I find it quite confusing - probably I am not really used to this kind of macro - if I see a line of code with ' InitializeVariableName ()' I would expect a function...
And all the 'right click' features such as 'Recall function panel', 'Goto definition' etc. do not work because it is not a known function... but a macro.
It would be nice to have a possibility to see/know that some text is a function or a macro.
Wolfgang