I tried really hard to figure out how to do this and I failed. I read all the syntax highlighting documents and I edited several. I probably spent 6 hours and I failed.
I'm working with network logs and I want to enhance their readability with some highlighting. The format of a line could be like this:
01 2F F4 37: 87 05 02 00 AC 7E
At a bare minimum I want to highlight the hex bytes as a color, but I've failed - the numbers highlight but the A-F do not.
I'd like to be able to highlight a regex like:
^[0-9A-F ]{11}:
to be red, let's say, and
(?:[0-9A-F ]{2} ?)+
to be blue
or
:.+
Ideally if I could just arbitrarily highlight matches from defined regex, I think that would give me the full power to do everything that I want.
Please help!
Thanks
I'm working with network logs and I want to enhance their readability with some highlighting. The format of a line could be like this:
01 2F F4 37: 87 05 02 00 AC 7E
At a bare minimum I want to highlight the hex bytes as a color, but I've failed - the numbers highlight but the A-F do not.
I'd like to be able to highlight a regex like:
^[0-9A-F ]{11}:
to be red, let's say, and
(?:[0-9A-F ]{2} ?)+
to be blue
or
:.+
Ideally if I could just arbitrarily highlight matches from defined regex, I think that would give me the full power to do everything that I want.
Please help!
Thanks