Syntax highlight - from start of line to end

General questions about using TextPad

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

Post Reply
fergus

Syntax highlight - from start of line to end

Post by fergus »

Setting up syntax highlighting for certain log files.

I would like to highlight all lines which begin with:
Errors ......

eg: Errors in file 23
Errors in files 23, 45, 65

and such


Any help in this is appreciated.

Thanks.
Berend Veldkamp

Re: Syntax highlight - from start of line to end

Post by Berend Veldkamp »

Define a syntax file that has
SingleComment = errors
and choose an appropriate color, default is lightgrey IIRC.

Berend
Chris

Re: Syntax highlight - from start of line to end

Post by Chris »

I want to do something similar and am already using the single comment. How do I create a second color code for a secondary single comment? For example, my normal comments are green, however, if I have a certain string for a debug line, how do I make that red?


-Chris
Berend

Re: Syntax highlight - from start of line to end

Post by Berend »

SingleCommentAlt and change the color for 'Comments 2'

Berend
Post Reply