I'm trying to write a syntax definition file for Velocity templates. These incorporate standard html, and a bunch of keywords which start with # e.g. #set #foreach
Some of the keywords are followed by a bracket ( something ), some not. Is there any way to match on these keywords at the same time as html tags? I though there might be some mileage with the [Preprocessor keywords] section but no luck so far.
TIA, simon
problem with syntax definitions
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Chris
Re: problem with syntax definitions
I had the same idea (creating a velocity syntax file)...
I can not even get the file to use the BracketChars = xxxxx properly. For some reason, the brackets do not get highlighted. I started with an xml syntax file that worked properly (and so did the brackets). Once I copied it to velocity.syn, brackets no longer highlighted.
I can not even get the file to use the BracketChars = xxxxx properly. For some reason, the brackets do not get highlighted. I started with an xml syntax file that worked properly (and so did the brackets). Once I copied it to velocity.syn, brackets no longer highlighted.