4

My web application has job descriptions. These job descriptions can be modified by some users. Each modification result in a new version of the job description.

The content of the job description is edited by the users, in html, directly in the textearea using the tinymce editor.

I want to be able to show a user the modifications made to the content from one version to another. The simpler the better, for example, just a green background for added content and a blue background for removed content.

The application is a ruby on rails app and I have full access to my server (slicehost)

Alexis Perrier
  • 683
  • 9
  • 13
  • possible duplicate of [diff a ruby string or array](http://stackoverflow.com/questions/80091/diff-a-ruby-string-or-array) – sawa May 23 '11 at 08:23

3 Answers3

2

You might also look at differ.

zetetic
  • 47,184
  • 10
  • 111
  • 119
1

This might be helpful http://markmcb.com/2008/11/04/ruby-on-rails-diff-text-to-html-ins-and-del/

This uses the diff utility available on most systems and formatting changes would be highlighted as well.

Anurag
  • 140,337
  • 36
  • 221
  • 257
0

You should use a simple diff program. Here are some good ones:

OSX

FileMerge - Apples own. Installed with XCode

Changes - Good little app

Araxis Merge - Commercial but featureful

*Nix

Meld - Full featured

Kompare - KDE, very nice

Gdkdiff - Simple but effective

tkdiff - Unkown

simply use the diff command line command...

Win

Winmerge - One of the best

Roja Buck
  • 2,354
  • 16
  • 26