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.
5 Answers
-
11Could 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.– nhinkleCommented Jan 14, 2011 at 4:48
-
2Actually,
vim
will do almost everything automatically :-). To compare two files, invokevimdiff file1 file2
on the command line. If you use the GUI versiongvim
, al least on Windows you can mark two files in Explorer, then context menu "compare in vim".– sleskeCommented Jan 14, 2011 at 9:19 -
1vim is not always the answer, I have a 1200 lines long file and I will not use a tool like that– KiwyCommented Nov 5, 2015 at 18:52
-
3@akira, I'm still lost. How does one get from the first picture to the second?– ShiteshCommented Mar 15, 2017 at 11:54
-
1
Notepad++ can open any text file and has a variety of syntax highlighting including diff files
-
1I'd sure like a reference on that cause there doesn't seem to be a Notepad++ patch viewing tool. Commented Nov 29, 2016 at 20:41
-
1Open the file in Notepad++ and select Language --> D --> Diff Commented Feb 13, 2023 at 10:54
Free Options for diff viewing/editing/merging:
Wikipedia's recommendations: Comparison_of_file_comparison_tools
**Support Syntax Highlighting*
-
14He doesn't need a file comparison tool, he needs a program that does syntax highlighting of diff files. Commented Oct 20, 2010 at 2:44
-
-
10It does file comparison. It does not do diff file syntax highlighting. Commented Oct 20, 2010 at 2:51
-
1
FreeDiff might meet your needs, but without know what exactly you are trying to do besides read it, its hard to say for sure.
-
3I'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. Commented Oct 20, 2010 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?
-
2Almost any text editor better than Notepad will do it. But he may be looking for a dedicated diff file viewer. Commented Oct 20, 2010 at 7:34
any-name.diff
viewer. what i want is available with tortoise svn but i'm looking for alternative