Is there a diff tool that allows copy-paste

2019-04-04 03:33发布

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.

7条回答
beautiful°
2楼-- · 2019-04-04 03:55

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>
查看更多
迷人小祖宗
3楼-- · 2019-04-04 04:03

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

查看更多
趁早两清
4楼-- · 2019-04-04 04:04

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.

查看更多
放我归山
5楼-- · 2019-04-04 04:09

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.

查看更多
Rolldiameter
6楼-- · 2019-04-04 04:12

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

查看更多
放我归山
7楼-- · 2019-04-04 04:13

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

查看更多
登录 后发表回答