Pomster
Pomster

Reputation: 15197

Is there a way to compare two richtextboxs text and highlight the deference?

I have two richtextbox's that display stored procedures and its previous version.

I would like to know if i could compare the two and highlight the differences?

It would be similar to the notepad++ compare plugin.

Thanks in advance :)

Upvotes: 3

Views: 1046

Answers (1)

flindeberg
flindeberg

Reputation: 5017

I'd recommend the google diff (lib) for diffing the texts, and then taking the output and putting it in an another textbox :D

The library has functionality similar to the diff *nix command. It is also released under the apache 2.0 license, which is described here and in short means that it can be used in any type of project except if the end result is supposed to be release as "free" software, for example GPL 3.0.

Upvotes: 5

Related Questions