Permalink
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (5 sloc) 221 Bytes
require File.join(File.dirname(__FILE__), '/lib/pygments.rb')
# Simple marshalling
serialized_lexers = Marshal.dump(Pygments.lexers!)
# Write to a file
File.open("lexers", 'w') { |file| file.write(serialized_lexers) }