ak3nat0n
ak3nat0n

Reputation: 6288

track and display changes in html

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?

Upvotes: 2

Views: 3010

Answers (3)

elhoim
elhoim

Reputation: 6511

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.

Upvotes: 0

Theo.T
Theo.T

Reputation: 9267

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/

Upvotes: 3

LiraNuna
LiraNuna

Reputation: 67261

http://aignes.net/

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

Upvotes: 0

Related Questions