问题
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:
- Download and install winmerge
- Open WinMerge & Create new
<CTRL+N>
- 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
- Copy first text
- File -> New from Clipboard
- Copy second text
- 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