Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changes highlight in asp.net (like beyond compare) : Text or HTML comparison

Tags:

c#

asp.net

vb.net

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

I'm used to "beyond compare" text compare, so the Ideal solution will do something like it, but if it just highlight the differences, that would be OK.

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

The content is HTML, so if it could compare the HTML rendered text, it would be even better.

So, i need a link or a control (free if possible) to do that job.

thanks

like image 627
DavRob60 Avatar asked Oct 14 '22 08:10

DavRob60


2 Answers

I think what you're asking is pretty complex. I can't find any control out there that will do this, but i did find this: Difference Algorithm for C#

It doesn't give you exactly what you need, but it's a good place to start.

like image 55
WVDominick Avatar answered Nov 15 '22 05:11

WVDominick


I've just come across this question and it looks like there are more recent options - eg. Html Diff algorithm for .NET

like image 30
wizzardmr42 Avatar answered Nov 15 '22 05:11

wizzardmr42