Jeff Sanders Technical Blog

I am a Microsoft employee that has worked on all aspects of the Web Stack for a long time. I hope these blogs are useful to you! Use this information at your own risk.


<< Go Back

How To Add A Copy Code Link To Your Blog Post And Colored Code Blocks

- 21 Mar 2013

A nice touch to your blog is to have a link to copy the code you have entered.  Another great feature is to have your code colored as it would be in Visual Studio.  There a couple of ways you can do this.  Here is how I prefer to do it!

LiveWriter Plug-in for code formatting

I use LiveWriter so I love to use Plug-Ins when appropriate.  There are some plugins to make code pretty but some require

Install plug-in

In LiveWriter, go to the ‘Insert’ tab and choose ‘Add plug-in’

image

 

Once there filter by ‘Formatting / clipboard’ and choose ‘Paste from Visual Studio’

image

Hit the download button, then run the installer.

Now close and restart LiveWriter (don’t forget to save your work).

Use the Plug-in

To use this plugin:

<< Go Back