gem install coderay_bash
require 'rubygems'
require 'coderay_bash'
plain = File.read('some_script.sh')
@body = CodeRay.scan(plain, :bash).div
<%= @body %>
:bash
:erb_bash
-- erb code in bash strings
For more information see CodeRay web pages
gem install coderay_bash
require 'rubygems'
require 'coderay_bash'
plain = File.read('some_script.sh')
@body = CodeRay.scan(plain, :bash).div
<%= @body %>
:bash
:erb_bash
-- erb code in bash stringsFor more information see CodeRay web pages