how can I diff two sections of the same file?

前端 未结 7 1403
心在旅途
心在旅途 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:12

    Emacs has ediff-regions-wordwise for this -- you can take two buffers (or just one) and select a region in each, which ediff will then show for comparison.

提交回复
热议问题