Oct 052009

Being that I wanted to try and keep this blog as code centric as possible I quickly realized that I needed an easy and effective way to add code snippets to my blog posts.  Thus began my search into an effective way tool to do just that.

I started by looking into user created plug-ins, now my query for ‘code snippets’ returned four pages worth of results, only two of which actually seemed to be what I was looking for.  Something that would block the code sections off making it easier to read and stand out from the rest of the blog posts. The rest didn’t seem to be able to do this or they did it specifically for a single language of code.

So I went to the plug-ins website for WordPress and evaluated the reviews of two plug-ins I found, Code Snippet and WordPress Code Snippet.  I was not too impressed with Code Snippet due to the fact I couldn’t access the plug-in’s website.  However, the WordPress Code Snippet looked amazing, but going to the plug-in page through my dashboard warned me that it may not be compatible with my version of WordPress, but I tried anyway and it failed, likely due to the hosting I use and not the plug-in.

So I went to the website for the plug-in and downloaded it and manually installed it following the instructions.  I have to say that this plug-in has exceeded my expectations, it was easy to install and use once I got it installed.  It’s only downfalls are the ability to only put one code snippet per post and not being able to control where it is located.

On the bright side it seems as if the author of the plug-in is working on the requests of adding multiple snippets to a single post.  The thread for his plug-in comments/suggestions can be found here http://www.allancollins.net/137/wordpress-plugin-wordpress-code-snippet/.

    //Something Awesome
while (true);

  One Response to “Adding Code Snippets to WordPress Blog Posts”

  1. Thanks a lot for your nice post. But I had difficulty navigating around your web site because I kept getting 502 bad gateway error. Just thought to let you know.

 Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.