[HELP] How to highlight keywords merged?

General questions about using TextPad

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

Post Reply
acpguedes
Posts: 1
Joined: Mon Aug 22, 2016 1:26 pm

[HELP] How to highlight keywords merged?

Post by acpguedes »

I had to write a syntax file to highlight some keywords in a file model that I use.
But, this kind of file don't have any spaces between keywords.
All keywords are single upper-case letters, eg. K, G, H, ...
Therefore, all keyword are length equal to 1.

So, my *.syn file highlight correctly work when I type the keywords separately, but not when they are merged.

How can I do this work?
I want to you activate my account to a ask to textpad community some alternative.
Because I setted the KeyWordLength parameter to 1 and yet don't work.

This is my syntax file

Code: Select all

C=1

[Syntax]
Namespace1 = 6
IgnoreCase = Yes
KeyWordLength = 1
BracketChars =
OperatorChars =
PreprocStart =
SyntaxStart = /%
SyntaxEnd =   %/
HexPrefix =
CommentStart =
CommentEnd =
CommentStartAlt
CommentEndAlt =
SingleComment =
SingleCommentCo
SingleCommentAl
SingleCommentCo
SingleCommentEs
StringsSpanLine
StringStart =
StringEnd =
StringAlt =
StringEsc =
CharStart = 
CharEnd = 
CharEsc =

[Preprocessor k

[Keywords 1]
D
E

[Keywords 2]
R
K
H

[Keywords 3]
M
A
I
L
V
W
F
Y

[Keywords 4]
P
G

[Keywords 5]
N
Q

[Keywords 6]
S
T
C

This is a little piece of the file that will be highlight

Code: Select all

----LPELS-GYLEYDSLNEKIKQNK-----------------------------F----------T---------------NEQEKAKIIAK--------------------F----------N---------IVKQKKIKI-------K----QLVKLSLRKEIWNHINKYKLQNNDELWEYFY-PY-FSQD------------MVIAY----N------I-----------KKV--PLK-----------K
Could someone help me?
Post Reply