send @options['language'] to pygments.appspot.com, not just 'ruby'.
This commit is contained in:
parent
17eeb9e75f
commit
2f54f4c424
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user