Page 1 of 1

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

Posted: Mon Sep 29, 2008 5:44 pm
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.

Posted: Mon Sep 29, 2008 6:46 pm
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.

Posted: Mon Sep 29, 2008 7:05 pm
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.