Convert raw diff file to colorized html output

后端 未结 6 1141
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-13 03:37

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 li

6条回答
  •  执念已碎
    2021-01-13 04:02

    With the evolution of diff and the existence of "aha", it's pretty simple now.

    diff -y --color=always input1.tsv input2.tsv | aha --black > output.html

    I also found this on https://unix.stackexchange.com/a/45390/378998

提交回复
热议问题