Changes are highlighted in asp.net (e.g. without comparison): text or HTML comparison

I need to highlight changes (diff) between 2 text fields of a database in an asp.net application.

I'm used to comparing text “without comparison”, so the Ideal solution would be to do something like this, but if it just highlights the differences, it will be fine.

http://www.scootersoftware.com/moreinfo.php?zz=screenshot&shot=TextCompare

Content is HTML, so if it could compare HTML-processed text, it would be even better.

So, I need a link or control (free if possible) to complete this task.

thanks

+4
source share
2 answers

I think that you are asking quite difficult. I can't find any control there that will do this, but I found this: Difference algorithm for C #

This does not give you exactly what you need, but it is a good place to start.

+2
source

I just stumbled upon this question, and it looks like there are more recent options - for example. Html Diff Algorithm for .NET

+1
source

Source: https://habr.com/ru/post/1303288/


All Articles