From 2f54f4c4244166e9b6513da8e5a7807c434cbf51 Mon Sep 17 00:00:00 2001 From: Burke Libbey Date: Tue, 30 Mar 2010 14:08:12 -0500 Subject: [PATCH] send @options['language'] to pygments.appspot.com, not just 'ruby'. --- lib/rocco.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rocco.rb b/lib/rocco.rb index 3a76a2d..72a204e 100644 --- a/lib/rocco.rb +++ b/lib/rocco.rb @@ -209,7 +209,7 @@ class Rocco def highlight_webservice(code) Net::HTTP.post_form( URI.parse('http://pygments.appspot.com/'), - {'lang' => 'ruby', 'code' => code} + {'lang' => @options['language'], 'code' => code} ).body end end