CodeSnippet v2.0.0

Rating:        Based on 7 ratings
Reviewed:  4 reviews
Downloads: 6638
Released: Mar 18, 2009
Updated: Mar 18, 2009 by lvildosola
Dev status: Stable Help Icon

Recommended Download

Application Code Snippet plugin for Windows Live Writer Setup
application, 527K, uploaded Mar 18, 2009 - 6638 downloads

Release Notes

Code Snippet plugin for Windows Live Writer v2.0.0

It's been a while since I looked at this plugin, just as it's been a while since I blogged (but that's another story). I have spent the last few days implementing most of the features listed below in the current code base.

Here's a list of what is included in this release:

New Languages

The following formats have been added to the list of supported languages:
  • AutoIt (never heard of it, saw someone post about it and decided to add it, why not!)
  • ColdFusion
  • Java
  • PHP
  • Regular Expression

New Options Dialog

One of the things I wanted to do for a long time was expose some of the configuration parameters for the plugin. In previous versions, some of these configuration parameters were available in the configuration file. But now, you can edit them through a dialog and more of the options have been exposed.

New Features

Customize Styles

In previous releases the styles used to apply the syntax highlighting were exposed in a very limited fashion. You could only get the cascading style sheet to include as a reference in your website. However, this works great only if your audience is viewing your posts in your website. If you want to make sure your RSS feeds, for example, have the proper formatting, you need to embed the styles.

Now, you can change the look of your code snippets by modifying these styles through the Options dialog. The changes are stored in the configuration file and will be used to apply to any future code snippets you insert in your posts.

Edit Code Snippets

In the original implementation, I did not want to use the in-place editing features of the Windows Live Writer API. So, I opted for a different implementation where you can highlight existing snippets of code, whether or not these were inserted using this plugin. Basically, any highlighted text can be converted to a code snippet. This is a great feature, if I may say so myself, for re-applying style changes, if you previously embedded the styles in your post.

Convert Any Text to a Code Snippet

Using the same feature for editing snippets of code, you can now select any text in your post and convert it to a code snippet.

Issues Fixed

All currently open issues have been corrected in this preview release. Once I get confirmation of the fixes I will close them.

Miscellaneous Enhancements

Here's a list of additional enhancements to the plugin. These enhancements are not visible to the end user but in my opinion make the package more robust and complete.
  • Refactored style logic to allow exposure through Options dialog.
  • Migrated solution to Visual Studio 2008 SP1.
  • Verified / Updated all source code documentation is complete and as accurate as possible.
  • Localized all string resources, including those used in the Options dialog using some custom classes, such as Attribute classes, for use in the PropertyGrid control.
  • Added stand alone application to launch the Code Snippet plugin outside of the context of the Windows Live Writer editor. This is helpful for debugging, or when you just want to get some formatted HTML to post in a forum or something. (This is not pat of the deployment - let me know if you think it should be.)
  • Analyzed the source code through the Code Analysis feature of Visual Studio 2008.
  • Fixed the source code based on ReSharper 4.1 and Code Analysis recommendations.

Reviews for this release

Usually I would rate this 4/5 or even 5/5 stars but at the moment it becomes useless for WordPress bloggers: Hope it will be fixed soon!
by hfrmobile on Dec 15, 2010 at 6:38 PM
Great plugin. I've searched around an easy to use, yet full featured code snippet. This is the one I use. Great job!
by tonyamork on Sep 11, 2010 at 1:22 AM
Great plugin. One or two feature requests, but overall a very good plugin :-)
by ReneHezser on Jul 13, 2009 at 7:56 PM
Very good plugin, but with a few simple bugs that need to be corrected. Excelent job.
by kelps on Mar 17, 2009 at 3:46 PM