Is there a diff tool that allows copy-paste

混江龙づ霸主 提交于 2019-12-05 09:55:15

问题


Is there a diff tool that allows you to paste two segments of text and get a diff? I can't use an online tool because I'm dealing with proprietary data, and I haven't found a tool that provides that feature.


回答1:


Try WinMerge. It'll do that.

Steps:

  1. Download and install winmerge
  2. Open WinMerge & Create new <CTRL+N>
  3. Paste into left & right, then refresh <F5>



回答2:


In case anyone comes here looking for a tool for Macs that can do this, it seems that there are two tools that can do just this.

  • Beyond Compare, the Mac version is currently in beta.

  • Kaleidoscope app

    1. Copy first text
    2. File -> New from Clipboard
    3. Copy second text
    4. Edit -> Paste to comparison

Unfortunately, it doesn't seem to be possible to change the texts once they've been pasted.

There is also a similar (closed) question (the question itself was for a Mac tool, but at least one answer has an alternative diff tool for Windows):

Diff tool for Mac without saving text to files




回答3:


For those who use Atom, there’s the split-diff package.




回答4:


KDiff3 can do that too. On startup just Cancel the open dialog and than copy&paste snippets into the two panes. It immediately (re)computes their diff.




回答5:


Notepad++ makes it really easy to do that: paste first text, open new tab, paste second text then Plugin > Compare > Compare.

Make sure you have the compare plugin installed.

Source: https://stackoverflow.com/a/15817384/965176




回答6:


I think this might be what you're looking for - Line Diff - it's a online tool that takes as input two snippets of code/text, diff them and then render a nice github like html page (permanent or temporary stored) that you can then share with coworkers.




回答7:


also you can try online diff tool , maybe it's useful to you.



来源:https://stackoverflow.com/questions/7570796/is-there-a-diff-tool-that-allows-copy-paste

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!