Sha256: c49d9faba51c84ec48a7cef85a317578d930a6e6b454df19511dfa4b8977a2b8
Contents?: true
Size: 168 Bytes
Versions: 3
Compression:
Stored size: 168 Bytes
Contents
module SyntaxHelper def code language, &block content = capture(&block) return "<pre><code class=\"#{language}\">#{content}</code></pre>".html_safe end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
highlighting-0.1.4 | app/helpers/syntax_helper.rb |
highlighting-0.1.3 | app/helpers/syntax_helper.rb |
highlighting-0.1.2 | app/helpers/syntax_helper.rb |