Syntax highlighting won't find hyphenated keywords

General questions about using TextPad

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

Post Reply
melvers
Posts: 26
Joined: Tue Aug 05, 2003 1:52 pm

Syntax highlighting won't find hyphenated keywords

Post by melvers »

Does anyone know how to make the syntax highlighting find keywords with hyphens in them. I have some keywords like Font-Bold. I enter them into a syntax file, but those terms do net get highlighted (colored text) even though all the non-hyphenated keywords do.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Go to

Configure
Preferences
Document Classes
<your document class>
Syntax

add hyphen to field "Other characters in words"
melvers
Posts: 26
Joined: Tue Aug 05, 2003 1:52 pm

Syntax highlighting won't find hyphenated keywords

Post by melvers »

The problem with that is it makes the hyphen part of all words, which I don't want. I just want the syntax highlighting to match the keyword as entered (case-insensitive in this case). Since I am providing the explicit keywords, it shouldn't be using any word matching rules other than 'is this the same sequence of characters'.
Post Reply