I like kdiff3 very much due to the way it displays the result. It can compare more than two versions of a file or directory and displays the differences in columns:
- For directories, it displays their tree structure and it's easily recognizable which file exists/is modified where
- For files, it shows one column per file with the full text, highlighting the differences using various colors indicating the type of difference.
Here is a screenshot for those who don't know it:
Often, I would like to give away this nice output, but unfortunately, KDiff3 does not support to save/print its output.
The simple output of the command line tool diff
is a bit... puristic, with option -y
I get at least a two-column-output, but also the output is not so nice.
colordiff
seems not to be what I'm looking for.
Is there any other tool that can produce an output like this and save it to html/pdf/whatever?
Edit: I'm looking for a tool, which
- compares files and entire directories
- three or more versions
- generates side-by-side view of entire files
- colors the differences to make them more visible
- allows to save this to a common format like HTML or PDF
The last point is the most important. Something like a screenshot would do the job, but usually, the files are too large for the screen, and I did not find a tool for linux yet, which can capture an entire window.
meld
,diffuse
normeld
that I regularly use can do this.diffuse
is in Python so you might be able to put the functionality in yourself without to much problems.