Permalink
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 285 Bytes
# http://shjs.sourceforge.net/doc/documentation.html
module Source
def self.included into
into.external :js, "js/sh_lang.min.js"
into.external :css, "css/sh_style.css"
end
def source_code lang, text
sh_lang = "sh_#{lang}"
pre text, :class => sh_lang
end
end