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.9.0 lib/jazzy/highlighter.rb
jazzy-0.8.4 lib/jazzy/highlighter.rb
jazzy-0.8.3 lib/jazzy/highlighter.rb
jazzy-0.8.2 lib/jazzy/highlighter.rb
jazzy-0.8.1 lib/jazzy/highlighter.rb
jazzy-0.8.0 lib/jazzy/highlighter.rb
jazzy-0.7.5 lib/jazzy/highlighter.rb
jazzy-0.7.4 lib/jazzy/highlighter.rb
jazzy-0.7.3 lib/jazzy/highlighter.rb
jazzy-0.7.2 lib/jazzy/highlighter.rb
jazzy-0.7.1 lib/jazzy/highlighter.rb
jazzy-0.7.0 lib/jazzy/highlighter.rb
jazzy-0.6.3 lib/jazzy/highlighter.rb
jazzy-0.6.2 lib/jazzy/highlighter.rb
jazzy-0.6.1 lib/jazzy/highlighter.rb
jazzy-0.6.0 lib/jazzy/highlighter.rb
jazzy-0.5.0 lib/jazzy/highlighter.rb
jazzy-0.4.1 lib/jazzy/highlighter.rb
jazzy-0.4.0 lib/jazzy/highlighter.rb
jazzy-0.3.2 lib/jazzy/highlighter.rb