Home > Uncategorized > Note to self: Try the WLW Code Plugin for next blog post

Note to self: Try the WLW Code Plugin for next blog post

From pure laziness, I sometimes post code as images even though a part of me dies every time. I tend to use Windows Live Writer to edit my posts and to publish to the wordpress.com hosting site. This is a convenient workflow that works for me. However, when it comes to posting code there are many options but… yeah, i guess that is it. There are TOO MANY damned options. And all have pros and cons. Scott Hanselman says it all in this post.

When I have posted code from Visual Studio I have used the Paste As Visual Studio Code plugin. I have also used to Copy As Html plugin in Visual Studio. It works but it generates ugly html with embedded styles. An also it only works when I use visual studio. When using Sublime or something else I am out of luck.

Hoping that the world had improved since the last time I evaluated my alternatives I set out on a quick google session today. Indeed the wordpress.com has added support for syntax highlighting , leveraging Alex Gorbatchev’s SyntaxHighlighter. This is good, but like I said, I like the Windows Live Writer. Continuing my search quest I found, and installed, a plugin that enables this feature from within my good old writer. It is called WLW code plugin.

So… next time… I am going to try this approach.

var message = "hello world";
Categories: Uncategorized
  1. March 15, 2015 at 5:32 pm

    Already bumped into a problem with the quotes that are beeing html encoded and not displayed correctly… 😦

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: