The Barrettocracy
Barrett's Writings and Stuffs

Syntax Highlighting Test Post

Posted on February 13, 2008 at 12:35 AM

This is a test post with some ruby code in it.

  def show
    @product = Product.find(params[:id])
  end

  def new
    @product = Product.new
  end

I used the Google SyntaxHighlighter

Here is an even better example of this in use: http://www.nullable.se/past/2007/12/12/syntax_highlighting_in_posts/

Hierarchy: previous, next

Comments

There is 1 comment on this post. Post yours →

Ringtones

Thanks for the example, it helped me very well.

Post a comment

Required fields in bold.