Sha256: 69949db67966dd4e0197c9e8f2aa01bba0d2e17df2e433b877f63665273bcce7
Contents?: true
Size: 451 Bytes
Versions: 14
Compression:
Stored size: 451 Bytes
Contents
module Zena class CodeSyntax include Zena::Code::DefaultSyntax def initialize(text, code_lang) @text = text @code_lang = code_lang end protected def basic_to_html(inline, code_class) if inline ::RedCloth.new("<code class='#{code_class}'>#{@text}</code>").to_html else ::RedCloth.new("<pre class='#{code_class}'>#{@text}</pre>").to_html end end end end # Zena
Version data entries
14 entries across 14 versions & 1 rubygems