Posted on
Tuesday, October 28, 2008 3:19 AM
I'm always finding myself wanting to view the contents of a file, without the need of actually opening the huge memory sapping application that runs it. A C# source file or an ASP.net markup file are good examples. I often know there are useful lines of code somewhere, but I dont want to fire up a version of Visual Studio just to look at it.
Vista and Outlook 2007 has built-in previews that enables you to preview or view the contents of certain files without actually opening it. However, out of the box this is limited to Wod Documents, Excel files etc.
I'd previously stumbled across a PDF File previewer and then today I "Googled" for an Xml one. I still ahvent managed to find one, although I did manage to find a great post on a Blog by Tatham Oddie. He's written his own PreviewHandlerPack which will allow you to preview .cs, .aspx files etc.
See the post here... http://blog.tatham.oddie.com.au/2006/12/20/vista-and-office-2007-preview-handler-pack-released/
I also found this post on how to build your own previewers if you feel so inclined. There seems to be an interesting one for a .xaml file
http://msdn.microsoft.com/en-gb/magazine/cc163487.aspx
Enjoy...