Skip to content

将diff -ru 或git diff 的输出转换为html页面,以table格式的side-by-side样式展现

Notifications You must be signed in to change notification settings

beaEpoch/diff2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

diff2html

将diff -ru 或git diff 的输出转换为html页面,以table格式的side-by-side样式展现

用法:

diff -ru file1 file2 > diff.out
作为模块引入
    import diff2html
    txt = subprocess.check_output(['cat','diff.out'])
    diff.table = diff2html.parse_from_memory(txt, True)

jQuery设置折叠效果

$(".diffmisc").click(function(){ $(this).children("table").toggle(); });

About

将diff -ru 或git diff 的输出转换为html页面,以table格式的side-by-side样式展现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published