Skip to content

alexandrevez/coderay_bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash scanner for highlighting scripts with CodeRay

Usage

require 'rubygems'
require 'coderay_bash'

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

in your template then do some thing like

<%= @body %>

For more information see CodeRay we pages

About

Simple bash scanner for highlighting with coderay.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 98.0%
  • Shell 2.0%