Sha256: 0fec20bd827ca22eac9f7c660b3ca0b7cc70f18c6cb210a94e2efc526498efd2

Contents?: true

Size: 211 Bytes

Versions: 2

Compression:

Stored size: 211 Bytes

Contents

require "rubygems"
require "rygments"

# Highlight a string with some HTML in it
puts Rygments.highlight_string("<div id=\"foo\">bar</div>", "html")

# Highlight this file
puts Rygments.highlight_file(__FILE__)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rygments-0.2.0 example/example.rb
rygments-0.1.0 example/example.rb