Simple bash scanner for highlighting with coderay.
Ruby Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
CHANGELOG
MIT_License.txt
README.md
Rakefile
coderay_bash.gemspec

README.md

Bash scanner for highlighting scripts with CodeRay

Installation

gem install coderay_bash

Usage

require 'rubygems'
require 'coderay_bash'

plain = File.read('some_script.sh')
@body = CodeRay.scan(plain, :bash).div

in your template then do something like

<%= @body %>

Types

  • :bash
  • :erb_bash -- erb code in bash strings

For more information see CodeRay web pages

Licence

MIT