Syntax Highlighting in WordPress and Blogger

I came across Tyler Muth’s blog via Tom Kyte’s blog earlier this week. While he doesn’t have that many posts, his blog has powerful content. I also love the layout of his blog. In particular, I was fascinated with the way he was formatting his code snippets and wanted to add this functionality to my blog.

I came across a WordPress plugin by the name of "syntaxhighlighter". I also found out how to add this functionality to blogger blogs as well.

Here is an example of a code snippet with this plugin.

CREATE TABLE TEST
   (ACCOUNT NUMBER(16,0),
    FIRST_NAME VARCHAR2(20)
   ); 

And there you go. I might need to tweak the formatting to highlight words a certain color but it shouldn’t be too hard. It also looks like orana.info picked up my post as I was testing this plugin, so the post was incomplete at the time.

5 Comments »

  1. Oracle and more - Amardeep Sidhu » Blog Archive » Syntax highlighting for code in Wordpress said,

    March 3, 2008 @ 8:35 am

    [...] came across a post about syntax highlighting for code in WordPress on Thomas Roach’s blog who in turn saw it on [...]

  2. Witold said,

    November 5, 2008 @ 3:47 pm

    Thanks for the info!

  3. Jhon F. Ortiz O. said,

    January 20, 2009 @ 5:40 pm

    Thanks this information. I will create a weblog related with Java, then I need one of this plug-ins. Bye!

  4. Fedor said,

    February 23, 2009 @ 2:43 pm

    good job!

  5. cross-platform application said,

    April 15, 2009 @ 9:39 pm

    Best post!

RSS feed for comments on this post · TrackBack URI

Leave a Comment