Tom Smykowski
Tom Smykowski

Reputation: 26089

How to show on website differences between two texts (like diff or WinMerge but in JS)

I have two texts and would like to show differences between them in way that WinMerge or diff from TortoiseSVN works. Do you know any JS library that does this?

Upvotes: 1

Views: 573

Answers (2)

austincheney
austincheney

Reputation: 1115

Pretty Diff is an algorithmic diff tool written in JavaScript.

http://prettydiff.com/

Upvotes: 2

Bergi
Bergi

Reputation: 664620

There's http://ejohn.org/blog/javascript-diff-algorithm-2/. Also, there are some userscripts at Wikipedia which try to improve MediaWikis native diff engine, the most familiar might be Cacycles (WikiEd-) Diff.

Upvotes: 1

Related Questions