Coloured Git diff to HTML

前端 未结 7 590
盖世英雄少女心
盖世英雄少女心 2020-11-28 19:19

I enjoy using git diff --color-words to clearly see the words that have changed in a file:

\"Screen

7条回答
  •  执笔经年
    2020-11-28 19:30

    Don't know any tool to do exactly what you want. But here's a piece of code I often use to output html formatted colored diff: simplediff

    It's available in PHP and Python. The output tags the differences using and tags so you can easily color them using CSS.

提交回复
热议问题