Posted by Dmytro Shteflyuk on March 31, 2007 CodeColorer is the plugin which allows you to insert code snippets into the post with nice syntax highlighting. I want to show you example first: class Feed < ActiveRecord::Base SOURCE_TYPES = { category: 0, tag: 1, user: 2, } define_enum :source_type, raise_on_invalid: true #------------------------------------------------- # Accessors def vid