Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to post-process diff output and then pass the results to a graphical viewer, such as kdiff3 or xxdiff. If possible, I would like to be able to highlight in-line differences using different colors.

share|improve this question
1  
I don't think I fully understand what you're trying to do but I occasionally use a tool called meld when I want a little more visual flair to my diffs. –  lostriebo May 1 '12 at 17:43
    
linux or windows? –  Shevek May 31 '12 at 12:49

3 Answers 3

If you can use windows, there is a great program that does this called WinMerge

Here is an example:

Highlight Line Diff

share|improve this answer
    
+1 I love this software. But since the OP is using diff he's probably on linux. –  gsingh2011 May 31 '12 at 13:17

For highlighting, try colordiff or highlight, with the --syntax=diff argument; however, you don't need those with a graphical diff viewer as those have their own highlighters, so you should be able to just use a graphical diff viewer normally. The aforementioned [meld][http://meldmerge.org/] is one such tool, and you apparently already know about kdiff3.

If you're diffing non-files (e.g. <(command args...) subshell FIFOs in bash), all you need to do is redirect the non-files' content into files and run the graphical tool on that.

share|improve this answer

Perhaps this is not what you're looking for exactly, but you can do this in using vim:

vimdiff file1 file2 file3
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.