views:

222

answers:

2

How can I implement a text diff system that is similar to the one Stackoverflow is using. Could someone explain the overview of the system behind it?

Is there any open source code available?

+1  A: 

Several of the common tools to expose CVS and SVN archives on the web [1] supply similar colored diffs. You could examine the code for those...


Footnotes:

  1. Such as CVSweb
dmckee
A: 

Take a look at this post: http://blog.stackoverflow.com/2008/09/what-was-stack-overflow-built-with/

It says the compare tool used on SO is Beyond Compare 3.

amdfan
Isn't that just the tool they use for comparing source code files when developing, not what they use to display differences between revisions?
Sam Hasler
I think it can do both, but I'm not sure.
amdfan