0

Possible Duplicate:
Calculate text diffs in PHP

I have created a article. I want all my colleagues to update the article. I want to highlight the changes done to the article.

So far. I create a article. When another user edits an article. I create an updated article. An Article hasMany updatedArticle. But now when I want display the article, I want to be able to highlight the updates.

How can I compare two texts using php or jquery.

I appreciate any help.

Community
  • 1
  • 1
Josh Randall
  • 1,224
  • 4
  • 18
  • 30
  • 1
    This should help: [Calculate text diffs in PHP](http://stackoverflow.com/questions/112523/calculate-text-diffs-in-php) – deceze Aug 29 '11 at 10:12
  • Don't compare, what you can do is whatever your colleagues updates make that update with different colour. And update colour will depend on which user is updating. – TeaCupApp Aug 29 '11 at 10:14
  • Hi,http://stackoverflow.com/questions/3892657/highlight-text-diff-on-client http://stackoverflow.com/questions/112523/calculate-text-diffs-in-php – Intrepidd Aug 29 '11 at 10:14
  • http://stackoverflow.com/questions/1125248/how-to-highlight-changes-difference-in-one-text-paragraph-from-the-other – Ueli Aug 29 '11 at 11:07

0 Answers0