diff to html (diff2html) program [closed]
I'm looking for a "diff to html" program, which would generate a static html page from a given diff/patch file.
I've googled for it of course, but apart from some scripts I've found there's no "real project" (e.g. no package in Debian/Ubuntu).
Have I missed something? Can you recommend anything?
Solution 1:
You can use diff2html.py that is able to create a side-by-side diff in a static html page, from an unified diff input. The script is written in python.
cat foo.diff | python diff2html.py > foo.html
Solution 2:
pygments has syntax highlighting for diff (and for lots of other languages), and can be used as a library or a command-line program. Is that the sort of thing you're looking for? If not please clarify the question...
Solution 3:
Something along the lines of:
vim test.diff -c TOhtml -c ":saveas test.html" -c ":q" -c ":q"
works well, and you can change the color-scheme of the diff by changing the color scheme in vi.
Solution 4:
http://www.sourceforge.net/projects/diff2html
Solution 5:
how about Text-Diff-HTML, difflib.HtmlDiff, CSDiff?