Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there anything available for .NET to get the differences in two strings?

I'm looking for a way to determine the differences between two strings, and highlight them in both strings.

I would suspect that most 'diff' libraries won't work since they show differences in lines (I believe).

Either an algorithm or library will work.

Thanks, Mark

like image 399
MStodd Avatar asked Dec 05 '25 21:12

MStodd


1 Answers

DiffPlex can handle many different kinds of "intra-line" diffs, including character and word diffs. I think it should be able to do everything you're asking for here.

like image 180
Aaronaught Avatar answered Dec 07 '25 10:12

Aaronaught



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!