本文介绍了将原始的diff文件转换为彩色的html输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道一个脚本可以接受原始的diff文件并漂亮地打印HTML输出(这将更易于查看/发送邮件)?谷歌搜索返回了一些结果,例如
Does anyone know of a script that can accept a raw diff file and pretty print HTML output (which would be easier to review/mail)? A google search returned me some results like http://kafka.fr.free.fr/diff2html/
但是所有这些脚本都需要两个文件作为输入(它们甚至不接受两个目录)。我的差异输出是两个svn分支之间的差异
However all of these scripts require two files as input (they don't even accept two directories). My diff output is the diff between two svn branches
推荐答案
我最终使用了来创建并排diff的静态html输出,并提供统一的diff输入
I finally used diff2html.py to create static html output of a side-by-side diff, given my unified diff intput
这篇关于将原始的diff文件转换为彩色的html输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!