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.

Is there any free software that will run on Windows 7 to show syntax highlighting for *.diff files generated from comparing files? I don't want to compare files, just view the highlighted output from software which has already compared two files.

share|improve this question
1  
.diff files are plain text. Are there any features in particular that you're looking for? –  Ignacio Vazquez-Abrams Oct 20 '10 at 1:24
    
Yes. my fried has tortoise SVN installed and that highlight the places of changes in code. I need a free app to open .diff file which can highlight changes like tortoise SVN diff viewer. I don't want to install tortoise SVN just to open .diff file, is there any other lightweight portable apps available –  metal gear solid Oct 20 '10 at 1:32
    
So then you want a diff viewer, and not just a .diff viewer? –  Ignacio Vazquez-Abrams Oct 20 '10 at 1:34
    
yes, but tortoisesvn is actually comparing the files... it's not just displaying a plain text diff file. –  Robert S Ciaccio Oct 20 '10 at 1:36
    
@Ignacio Vazquez-Abrams - no not a diff viewer i need any-name.diff viewer. what i want is available with tortoise svn but i'm looking for alternative –  metal gear solid Oct 20 '10 at 1:42

5 Answers 5

up vote 4 down vote accepted

As always: VIM:

viewing a diff file

viewing 2 files in diff mode

share|improve this answer
1  
Could you expand on this answer a bit? I see that it got accepted, but your three-word response isn't very helpful to future visitors of this question. –  nhinkle Jan 14 '11 at 4:48
    
there are only 3 chars in 'vim' and that says it all as well :) –  akira Jan 14 '11 at 7:06
    
Actually, vim will do almost everything automatically :-). To compare two files, invoke vimdiff file1 file2 on the command line. If you use the GUI version gvim, al least on Windows you can mark two files in Explorer, then context menu "compare in vim". –  sleske Jan 14 '11 at 9:19
    
@sleske: hence the "as always" ... –  akira Jan 14 '11 at 9:42

Free Options for diff viewing/editing/merging:

Wikipedia's recommendations: Comparison_of_file_comparison_tools

*Support Syntax Highlighting

share|improve this answer
    
He doesn't need a file comparison tool, he needs a program that does syntax highlighting of diff files. –  Ignacio Vazquez-Abrams Oct 20 '10 at 2:44
    
@Ignacio Vazquez-Abrams - Meld does syntax highlighting –  ricbax Oct 20 '10 at 2:48
    
It does file comparison. It does not do diff file syntax highlighting. –  Ignacio Vazquez-Abrams Oct 20 '10 at 2:51

Notepad++ can open any text file and has a variety of syntax highlighting including diff files

share|improve this answer

FreeDiff might meet your needs, but without know what exactly you are trying to do besides read it, its hard to say for sure.

share|improve this answer
    
I've tried this already and winmerge also . those are not I'm looking for. I don't want to compare 2 files. I just want to open .diff. –  metal gear solid Oct 20 '10 at 1:34

If you want to do syntax highlighting, then its a case of: What is in the files, in order that it be highlighted? For example, C source files are parsed differently to XML files.

Perhaps (shudder) emacs would suit?

share|improve this answer
1  
Almost any text editor better than Notepad will do it. But he may be looking for a dedicated diff file viewer. –  Ignacio Vazquez-Abrams Oct 20 '10 at 7:34

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.