Add PHP code highlighting

pull/142/head
Thibaut 10 years ago
parent 23a0c830ec
commit 16f6388785

@ -0,0 +1,6 @@
#= require views/pages/base
class app.views.PhpunitPage extends app.views.BasePage
afterRender: ->
@highlightCode @findAll('pre.programlisting'), 'php'
return

@ -45,6 +45,7 @@ module Docs
next if node.previous_sibling && node.previous_sibling.content.present?
next if node.next_sibling && node.next_sibling.content.present?
node.parent.name = 'pre'
node.parent['class'] = 'programlisting'
node.parent.content = node.content
end

Loading…
Cancel
Save