How to hilight particular text in a file

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
vnkt4u
Posts: 1
Joined: Sat Mar 29, 2008 7:18 am

How to hilight particular text in a file

Post 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
bveldkamp

Post 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.
Post Reply