New WordPress.com feature – Posting Source Code

New WordPress.com feature – Posting Source Code

Just when I’d started using the ‘Code Snippet Plugin’ for Windows Live Writer, WordPress have now given us this -

http://en.support.wordpress.com/code/posting-source-code/

So I thought I would just write a quick post to test it out.

Don’t mind me while I just type some meaningless code with the SharePoint Object Model -

[code lang="csharp"]
Using (SPSite site = new SPSite(“http://mytest”))
{
Using (SPWeb web = site.OpenWeb())
{
SPList list = web.Lists[“MyList”];
}
}
[/code]

*Fingers crossed this looks ok :-)

*Update 06/05/2010 – My blog is now self hosted so no longer supports this feature – I have found this handy plugin instead – http://wordpress.org/extend/plugins/syntaxhighlighter/installation/

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">