Regex highlight html

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NOSPAM plz

    #1

    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



Working...