views:

265

answers:

5

Is there a diff tool that allows saving of the compare markup?

To clarify, I would like to save the actual comparison of the two files that shows the differences to send to someone for review.


EDIT

Lots of good answers here. In my case I already had a copy of Beyond Compare but didn't see the option. Thanks to John Saunders for pointing out the feature. It's "Session...Text Compare Report..." BTW.

My question was not specifically about Beyond Compare, so I am going to accept the answer that currently has the most up votes.

+9  A: 

WinMerge is free and allows you to save the differences in various formats. It works well enough for me to not bother looking elsewhere, and I like the price.

There is also a portable version if you can't, or don't want to, install it.

Rich Seller
+1  A: 
maxwellb
+1  A: 

Beyond Compare does this.

John Saunders
I actually have a trial of Beyond Compare but didn't see the option at first. Just choose "Session...Text Compare Report..." and there it is. Beyond Compare FTW. :)
Dana Holt
+2  A: 

You can do this with the command line diff if you're using Unix, though it sounds like you're not. Cygwin does bring a CLI diff, and Mac OS X ships with it.

$ diff <file> <other file> > mydiff.txt
Mitch Haile
Yes, I am using Windows. Updated the question. :)
Dana Holt
still, this is the right answer.
Javier
+1  A: 

ExamDiff does a comparison which is shown in a window. It can save a Unix-like formatted version of the differences. Also, the file-to-file comparison version of the program is free!

PTBNL