Page 1 of 1

How to hilight particular text in a file

Posted: Sat Mar 29, 2008 7:29 am
by vnkt4u
Hello,

I have some files with extensions *.0* and the text in these files is like:

2008/02/25-15:10:07.734427-06387-00001-0x0603010000040001-006 | experimental_result="(PARAMETER NOT SET)"
2008/02/25-15:10:07.734427-06387-00001-0x0603010000040001-006 | result_code="2001 (RESULT_CODE_DIAMETER_SUCCESS)"

In every line after 32 characters the text will be -0000x- where x-is 1/2/3/4/5 depending on these values I have to change the line colour.

For example if one line has -00001- then that line should be in red colour.
if one line has -00002- then that line should be in blue colour.

Can you please help me how to do this?

Tanks a lot in advance!

Thanks & Regards,
Venkat

Posted: Mon Mar 31, 2008 11:11 am
by bveldkamp
Syntax highlighting can only color separate words (or lines that start with a comment symbol), so what you want is not possible with the current version of TP.