problem with syntax definitions

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Simon Christian

problem with syntax definitions

Post by Simon Christian »

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
Chris

Re: problem with syntax definitions

Post by Chris »

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.
Post Reply