Navigation Menu

Skip to content

johnl/coderay_bash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash scanner for highlighting scripts with CodeRay

Instalation

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

About

Simple bash scanner for highlighting with coderay.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 97.3%
  • Shell 2.7%