Page 1 of 1

Syntax highlight - from start of line to end

Posted: Mon Sep 09, 2002 3:37 pm
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.

Re: Syntax highlight - from start of line to end

Posted: Mon Sep 16, 2002 1:43 pm
by Berend Veldkamp
Define a syntax file that has
SingleComment = errors
and choose an appropriate color, default is lightgrey IIRC.

Berend

Re: Syntax highlight - from start of line to end

Posted: Wed Sep 18, 2002 5:02 pm
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

Re: Syntax highlight - from start of line to end

Posted: Mon Oct 07, 2002 6:02 am
by Berend
SingleCommentAlt and change the color for 'Comments 2'

Berend