how can I diff two sections of the same file?

前端 未结 7 1409
心在旅途
心在旅途 2021-02-13 16:53

I have a source file with two similar yet subtly different sections. I\'d like to merge the two sections into one subroutine with a parameter that handles the subtle difference

7条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-13 17:19

    KDiff3 is open source and available on several platforms including Win32 and Linux.

    It has the "manual alignment" feature discussed by Gishu about Beyond Compare (which by the way I haven't been using personally but is considered a great tool by many people I know).

    manual alignment example See this answer for more examples.

提交回复
热议问题