
The plug-in will also display a preview in the editor of what the source code will look like once posted on your blog. Once inserted you can use the properties menu bar to customise the way source code is displayed. Select the type of source code it is (e.g.CSharp etc) and click insert. To download the plugin visit the “ Downloads and Setup” page.Ĭreate your blog post in Live Writer as normal but when you want to key some Source Code choose Insert > Source Code Highlighter from the right hand Menu, then key or paste your source code into the pop up form. For details of Syntax Highlighting in, and the supported languages, check out. It inserts the correct ‘Wordpress shortcode’ entry around your code snippet to ensure it is displayed correctly in your blog. Whilst there are numerous plug-ins for self-hosted WordPress blogs and for other blog engines this one fills the specific requirements needed for a plug-in that targets hosted blogs. Using (codeEntryForm entryform = new codeEntryForm())Įntryform.StartPosition = FormStartPosition.CenterParent ĭialogResult result = entryform.ShowDialog(dialogOwner) Public override CreateContent(32Window dialogOwner, ref string newContent) The result is a clear formatted code snippet in your blog like this: It uses the Syntax Highlighting feature of to format your source code into the correct syntax for the type of source code snippet (e.g: C#, XML, Java etc). This is a Live Writer Plug-In for ‘Syntax Highlighting in blogs’. The following software is free to download and use, subject to the MIT License. There is now a fully online version here.For downloads and setup instructions check here.For information on the plugin and it’s features see below.

The Live Writer Source Code Plug-in For Blogs
