is there syntax document for "*.syn" files?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
testdog
Posts: 2
Joined: Mon Sep 29, 2008 5:21 pm

is there syntax document for "*.syn" files?

Post by testdog »

I am trying to modify an existing *.syn file for specific color highlighting
in a dense log file from one or our proprietary products.

I went to the add-ons page on your website but can’t locate any readme or document describing all keywords and syntax to WRITE a well formed *.syn file.

Looking at some of the other *.syn files help, but one will have one keyword and not another, while the next will have a few more.

Probably the most important thing I am trying to figure out is how to
add a “phase� to a keyword list, rather than just one word. Is this
possible? For example, right now I have Keywords 2 defined as:

[Keywords 2]
Starting:
Complete:

But really want it:

[Keywords 2]
Starting: settlement
Complete: settlement

I have tried to escape the <space> char, double and single quote the
strings, etc. but no luck using the “guess� method.

Any readme or doc you can provide will be appreciated.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Unfortunately, you cannot add phrases to be highlighted. Only single words will work.

Look in TextPad HELP under "syntax" for the current documentation on syntax files..
Locate sub topic: Syntax Definition Files

Look at some of the existing syntax files for examples.
Hope this was helpful.............good luck,
Bob
testdog
Posts: 2
Joined: Mon Sep 29, 2008 5:21 pm

Post by testdog »

This was helpful. Thanks. Sure wish I could hightlight phrases, as the 2nd and 3rd words in my phase are common to other messages.
Post Reply