If you are looking for a good solution for syntax highlighting, we though we would try out Alex G's Syntax Highlighter.

It is a pretty comprehensive solution with minimal fuss.

The nice part is that the language highlight javascripts are seperated by file so you do not have to include files for languages you are not readily using.

For our use, we just thought we would use the plain text brush, but there are ones for javascript, ruby, and more.

All you need to do onece you include the neccessary files is set the class on the pre tags.

class="brush: plain;"

You can use plain, ruby, css, etc.

  @posts.each do |post|   

<%= post.name %>