How to compare two HTML files
-
hello, how can I compare two HTML files and know if there text contents has changed and highlight the changes.
-
hello, how can I compare two HTML files and know if there text contents has changed and highlight the changes.
That's a multi-part question that I won't answer in a single post. You can compare text using string.Compare, string.CompareOrdinal, or use some of the regular expression methods found in System.Text.RegularExpressions.RegEx class. That will tell you what's different. From there, you'd have to provide more information as to what you're trying to highlight, what control you're using to highlight, whether you're using Windows Forms or Web Forms, what problems you're having, etc.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: The Secular Left, the Religious Right, and Prejudice Judah Himango