Ever since Microsoft released Windows Live Writer, posting articles to this blog (and others) has been really easy.  Even though this blog is powered by WordPress, Microsoft’s Live Writer let’s me author my blog posts, include pictures, format code and do all kinds of other tricks really easily.  One of the side benefits of using Live Writer is it gives you a very easy way to format HTML code.

So, turns out, that when you are writing a post with Live Writer, at the bottom of the page there are three tabs, Edit, Preview and Source.

 

image

 

When you switch to source, you will see the raw html.  You can also modify the source there which is our trick for formatting the HTML.

So, here are the steps:

 

1.  Start Live Writer (it starts with an empty post)

2.  Copy your unformatted HTML into the “Source” tab as shown above (it will look like this below)

image

3.  Click on the “Edit” tab at the bottom of the page

4.  Click Back on the “Source” tab at the bottom of the page

And now, it will look like this:

image

 

Now, you can cut and paste the code and put it anyplace you want.

Hope this helps!

http://www.linqpad.net/ – Use with Microsoft .Net for building Query type expressions with LINQ

I’m not a wizard at writing LINQ expressions so I often find myself in Google looking for something similar to what I want, then I put it into my application and run it. This has worked pretty well, but it takes a couple iterations to get it right. It occured to me that someone probably has written a LINQ interpreter so I just guessed the name, LINQPad, typed it into search, and I find the authors of the book C# 3.0 in a nutshell, Joseph Albahari and Ben Albahari, (which I like a lot) have written it.

(more…)


© 2012 PeterKellner.net. All Rights Reserved
Follow

Get every new post delivered to your Inbox

Join other followers: