highlighting complete lines depending on first two words

General questions about using TextPad

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

Post Reply
Olaf Doemer

highlighting complete lines depending on first two words

Post by Olaf Doemer »

Hi,
I'm working with ATG Dynamo log files a lot and almost all lines start with one of the following:
**** info
**** debug
**** warning
**** error

These lines can get pretty long

I tried to get Textpad 4.4.0 to highlite the full line in different colors depending on the start of the line but I somhow just get it to highlite the words. I tried with KeyWordLenght but that did not help. Also
SyntaxStart = ****
doesn't make a difference as I can not specify a SyntaxEnd. Maybe there is a way to tell it to highlite the syntax starting with a specific word until the next line break.

Any idea how to do that?

Thanks
Olaf.
Berend Veldkamp

Re: highlighting complete lines depending on first two words

Post by Berend Veldkamp »

AFAIK, there's no way to do this. The closest you can get is to set:
SingleComment = **** error
SingleCommentAlt = **** warning
and set the colors to red and orange, for instance.

Berend
Olaf Doemer

Re: highlighting complete lines depending on first two words

Post by Olaf Doemer »

Thanks, I think you are right. I upgraded to 4.6.2 in the meantime but that doesn't make a difference. Using the sinlge line comment makes it a bit better.
Would be a nice enhancement though.
Olaf.
Post Reply