Colors for strings with no ending characters

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
nkruis
Posts: 3
Joined: Tue Jun 24, 2008 4:21 pm

Colors for strings with no ending characters

Post by nkruis »

All,

I'm working with a script language that uses an '@' symbol to indicate a variable (e.g. @X, @Variable, etc.). I would like to write a syntax definition file to recognize these as strings ending at the space so I can assign them a color in TextPad. Is this possible?

Thanks,

Neal
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Not possible unless you include every string with the @prefix, like @copy, @round, etc. TextPad only takes complete strings in its syntax definitions, no way to use wild cards or RegEx syntax.
Hope this was helpful.............good luck,
Bob
nkruis
Posts: 3
Joined: Tue Jun 24, 2008 4:21 pm

Post by nkruis »

Will the use of wild cards be available in future updates?
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

I am just a user, like you, have no insight.

But there have been numerous requests for such a feature. You can hope.
Hope this was helpful.............good luck,
Bob
nkruis
Posts: 3
Joined: Tue Jun 24, 2008 4:21 pm

Post by nkruis »

Is it possible to define a space as the character ending the string (StringEnd = <space>)? or any hidden character for that matter?
Post Reply