Add syntax highlighting to source files

pull/1107/head
Waldir Pimenta 5 years ago
parent 2bdf3a05d0
commit 0631b3f7e9

@ -25,6 +25,11 @@ module Docs
pre['data-language'] = 'typescript' if node['class'] == 'lang-ts' pre['data-language'] = 'typescript' if node['class'] == 'lang-ts'
end end
# Add syntax highlighting to source files
css('pre.raw-source-code').each do |node|
node['data-language'] = 'javascript'
end
# Return the cleaned-up document # Return the cleaned-up document
doc doc
end end

Loading…
Cancel
Save