2

I am looking for a tool to display/track changes in text a little bit like it is done on stackoverflow when a question is edited. Does anybody know of a tool to achieve that?

ak3nat0n
  • 6,060
  • 6
  • 36
  • 59

3 Answers3

3

You may want to use diff for that.

If you can use PHP on your server there's a handy pear package to perform the task you require. Here's an example :

https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-6174867.html

There's actually a actually Javascript implementations outhere as well, not tested though:

http://ejohn.org/projects/javascript-diff-algorithm/

Community
  • 1
  • 1
Theo.T
  • 8,905
  • 3
  • 24
  • 38
0

A copy of my own answer from here.


What about DaisyDiff (Java and PHP vesions available).

Following features are really nice:

  • Works with badly formed HTML that can be found "in the wild".
  • The diffing is more specialized in HTML than XML tree differs. Changing part of a text node will not cause the entire node to be changed.
  • In addition to the default visual diff, HTML source can be diffed coherently.
  • Provides easy to understand descriptions of the changes.
  • The default GUI allows easy browsing of the modifications through keyboard shortcuts and links.
Community
  • 1
  • 1
elhoim
  • 6,705
  • 2
  • 23
  • 29
0

http://aignes.net/

Commercial tool though. I have no idea of a F/OSS alternative.

LiraNuna
  • 64,916
  • 15
  • 117
  • 140