Using Regular Expressions in Syntax Files

General questions about using TextPad

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

Post Reply
RichardFreedman
Posts: 2
Joined: Thu Apr 13, 2006 4:47 pm

Using Regular Expressions in Syntax Files

Post by RichardFreedman »

This is already posted on the Regular Expression subforum but perhaps it really belongs to general.

Is it possible to use regular expressions in Syntax files? Or at least be able to highlight a word that begins with a particular character. For example, $, @, or % in Perl: $abc, @def, %ghi.
bveldkamp

Post by bveldkamp »

Regular expressions in syntax files are definitely not possible. I'm not 100% sure about highlighting words that start with a certain character, but I don't think that can be done either. See the help topic "Syntax Definition Files" (Help | Contents | How To | Customize settings | Syntax Highlighting | Notes).
Post Reply