0.01
No commit activity in last 3 years
No release in over 3 years
Bash highlighting for coderay. This gem was tested with coderay 1.0 and won't work with coderay < 1.0.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.0
 Project Readme

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