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.
Syntax highlight - from start of line to end
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
Berend Veldkamp
Re: Syntax highlight - from start of line to end
Define a syntax file that has
SingleComment = errors
and choose an appropriate color, default is lightgrey IIRC.
Berend
SingleComment = errors
and choose an appropriate color, default is lightgrey IIRC.
Berend
-
Chris
Re: Syntax highlight - from start of line to end
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
-Chris
-
Berend
Re: Syntax highlight - from start of line to end
SingleCommentAlt and change the color for 'Comments 2'
Berend
Berend