I'm writing a syntax definition file and want to know if it possible to highlight the word directly after an @ symbol. The word after it can be anything so a list of keywords will not suffice. Any suggestions?
Cheers
R. Coombes
Is it possible?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Yes, it's possible.
Have the macro search for the @, begin selection, search for the next space, back up one character (left arrow), end selection.
Assuming, of course, that a space follows the word you want to select.
-Aaron
Assuming, of course, that a space follows the word you want to select.
-Aaron
Re: Yes, it's possible.
He's talking about syntax highliting, not selection ... though a similar (admitted kluge) could apply -- if the "keyword" always ended with a space (or some other specific char), you could define "@" as a string starter and " " as the terminater ... then you could colour those items as "String" ... and use "Character" and/or alt-string for "Real" strings ...