Example for Python Pygments via Ruby via Google App Engine

Language: Ruby

# Flowcoder is now using http://pygments.appspot.com/ to get pygments code syntax highlighting

require 'net/http'
require 'uri'

lang = 'python'
code = 'print "Hello World"'

request = Net::HTTP.post_form(URI.parse('http://pygments.appspot.com/'), {'lang'=>lang, 'code'=>code})
puts request.body
Reveal More
Added 12 months ago by Costco_normal trevorturk