Highlighting HTML text
-
I want to know any builtin function for highlighting a given keyword in HTML file. Only the text outside of tags, comments, script code should be highlighted. I think this could be done by : Finding out the position of keyword which is a normal text Replace it with </FONT> keyword </FONT> Write the new content into the HTML file Is there any standard method for doing the same? Any suggestion would be greatly appreciable!!
-- "Programming is an art that fights back!"
-
I want to know any builtin function for highlighting a given keyword in HTML file. Only the text outside of tags, comments, script code should be highlighted. I think this could be done by : Finding out the position of keyword which is a normal text Replace it with </FONT> keyword </FONT> Write the new content into the HTML file Is there any standard method for doing the same? Any suggestion would be greatly appreciable!!
-- "Programming is an art that fights back!"
You should look at HTML DOM Parser. Some interface and methods that may help you are
IHTMLDocument IHTMLElement2::getElementsByTagName IHTMLDocument2::createElement IHTMLDOMNode::replaceChild
«_Superman_» I love work. It gives me something to do between weekends.