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