469,285 Members | 2,517 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,285 developers. It's quick & easy.

Regex highlight html

Hey,

I want to write a function that highlights html code.

I have read the wiki page http://en.wikipedia.org/wiki/Regular_expressions

just like this:

<img scr="test.png" alt="test pic" height="100" width="100">
<a href="#">test</a>

to this:

<img scr="test.png" alt="test pic" height="100" width="100">
<a href="#">test</a>

Just example colors - not so pretty :)

Any suggestions?

Andreas

Feb 13 '07 #1
0 1022

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by melanieab | last post: by
4 posts views Thread by Allen | last post: by
9 posts views Thread by jmchadha | last post: by
2 posts views Thread by rockstar_ | last post: by
9 posts views Thread by Igal | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.