I use meld on Linux and I am able to compare two pieces of text without having to save them in files. Is there something similar for Mac and Windows?
NotePad++ with the Compare plugin on Windows:
http://sourceforge.net/projects/npp-compare/

TextWrangler for OS X does a nice diff of either files on disk or documents being edited.
That would allow you to make two empty docs, paste your text into each of them and run the diff.
来源:https://stackoverflow.com/questions/15817242/diff-tool-for-mac-without-saving-text-to-files