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.
Try WinMerge. It'll do that.
Steps:
- Download and install winmerge
- Open WinMerge & Create new
<CTRL+N>
- Paste into left & right, then refresh
<F5>
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.
-
- 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):
For those who use Atom, there’s the split-diff package.
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.
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.
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.
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