module CodeRay

def highlight code, lang, options = { :css => :class }, format = :div

See encode.

in your output.
CSS styles use classes, so you have to include a stylesheet

Highlight a string into a HTML
.
def highlight code, lang, options = { :css => :class }, format = :div
  encode code, lang, format, options
end