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.
is there syntax document for "*.syn" files?
Moderators: AmigoJack, bbadmin, helios, MudGuard
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
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.
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
Bob