Syntax highlighting - Infinite "string"
Posted: Thu Aug 08, 2002 8:15 am
Hi there,
I want to make Textpad highlight a whole line based on the presence of a keyword at the start of that line. So if my keyword is "ERROR" and my file contains the line:
ERROR: File not found
Then the whole line appears red, not just the word "ERROR". I'm imagining Perl type expressions here. So my keyword definition might be [start of line]ERROR:[any number of characters]. Is this possible in Textpad? I suppose its very similar to the way single line comments are defined, but I want to define several Keywords, and colour them differently.
I'm using TextPad version 4.5.0.
Cheers,
Paul
I want to make Textpad highlight a whole line based on the presence of a keyword at the start of that line. So if my keyword is "ERROR" and my file contains the line:
ERROR: File not found
Then the whole line appears red, not just the word "ERROR". I'm imagining Perl type expressions here. So my keyword definition might be [start of line]ERROR:[any number of characters]. Is this possible in Textpad? I suppose its very similar to the way single line comments are defined, but I want to define several Keywords, and colour them differently.
I'm using TextPad version 4.5.0.
Cheers,
Paul