I'm currently building a .NET library that constructs .MHT files, aka single file web page archives. That's what you get when you perform a File | Save As | Web Archive, Single File operation in IE6. HTML is a great, standard format for building richly formatted one-off reports, but once you start including images, it becomes a pain to manage a set of files. Thus, the utility of combining everything into a single file.
Surprisingly, instead of some crazy proprietary Microsoft format like you'd expect, the file follows the simple Multipart MIME Message RFC standard. Building an .MHT file is sort of like sending an email to yourself-- go figure. It also works in via extension in your precious Firefox, for those of you that enjoy slow rendering.
During development, I needed to reverse engineer what IE6 constructs, and use that as a comparison point for the output from my application. Unfortunately, the only file comparison tool I had access to was the crappy default "compare versions" function in Visual SourceSafe. It's workable, but it's kind of.. ghetto.
Every developer should have a good diff tool in their toolkit. After a bit of research, I settled on Araxis Merge as my preferred tool for visual comparisons.
It's a pricey tool, but it's come in very handy so far. The only regret I have is that VSS doesn't allow the use of any external comparison tools, so you can't integrate Merge with Visual Studio .NET.
Anyway, if like me, the only diff tool you ever used was the one in VSS-- you may not know how much you're missing.
Posted by Jeff Atwood View blog reactions
« Hungarian Wars Commandos, Infantry, and Police »
Actually, VS .Net does allow you to specify external programs for doing diffs, etc. In VS.Net, go to Tools, Options, Source Control, SCC Provider, then click on the advanced button. In the resulting dialog box, click on the custom editors tab and enter your editor's information.
I, for instance, put an operation of 'File Difference', for .vb and .cs files, and set my command line arg to "C:\Program Files\WinMerge\WinMergeU.exe" %1 %2.
Enjoy con leche.
Matt
Matt W on November 3, 2006 10:03 AMMaybe this comment is waaay to late. But my personal favorite is tortoisemerge.
It's a part of the tortoisesvn client. You can rip out all the SVN related stuff if you dont need it and it'll work fine.
you can find it at:
http://tortoisesvn.tigris.org/
| Content (c) 2008 Jeff Atwood. Logo image used with permission of the author. (c) 1993 Steven C. McConnell. All Rights Reserved. |