This Rack middleware component uses the CodeRay gem to automatically format code syntax by detecting a specific container in the final rendered markup.
Phil Misiowiec
gem "rack-coderay", "~> 0.2.0"