Text difference algorithm

后端 未结 11 2107
温柔的废话
温柔的废话 2020-11-27 10:56

I need an algorithm that can compare two text files and highlight their difference and ( even better!) can compute their difference in a meaningful way (like two similar fi

11条回答
  •  北海茫月
    2020-11-27 11:43

    Bazaar contains an alternative difference algorithm, called patience diff (there's more info in the comments on that page) which is claimed to be better than the traditional diff algorithm. The file 'patiencediff.py' in the bazaar distribution is a simple command line front end.

提交回复
热议问题