Sha256: 9c84c93d28ff241fd88b9c572a8de628ebbfb771af08d603dc238c665fbc35d1

Contents?: true

Size: 205 Bytes

Versions: 39

Compression:

Stored size: 205 Bytes

Contents

require 'rouge'

module Jazzy
  # This module helps highlight code
  module Highlighter
    def self.highlight(source, language)
      source && Rouge.highlight(source, language, 'html')
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
jazzy-0.3.1 lib/jazzy/highlighter.rb
jazzy-0.3.0 lib/jazzy/highlighter.rb
jazzy-0.2.4 lib/jazzy/highlighter.rb
jazzy-0.2.3 lib/jazzy/highlighter.rb
jazzy-0.2.2 lib/jazzy/highlighter.rb
jazzy-0.2.1 lib/jazzy/highlighter.rb
jazzy-0.2.0 lib/jazzy/highlighter.rb
jazzy-0.1.6 lib/jazzy/highlighter.rb
jazzy-0.1.5 lib/jazzy/highlighter.rb
jazzy-0.1.4 lib/jazzy/highlighter.rb
jazzy-0.1.3 lib/jazzy/highlighter.rb
jazzy-0.1.2 lib/jazzy/highlighter.rb
jazzy-0.1.1 lib/jazzy/highlighter.rb
jazzy-0.1.0 lib/jazzy/highlighter.rb
jazzy-0.0.20 lib/jazzy/highlighter.rb
jazzy-0.0.19 lib/jazzy/highlighter.rb
jazzy-0.0.18 lib/jazzy/highlighter.rb
jazzy-0.0.17 lib/jazzy/highlighter.rb
jazzy-0.0.16 lib/jazzy/highlighter.rb