Explorar o código

tcl_tk: enable syntax highlighting

Simon Legner hai 4 meses
pai
achega
6b680d1762
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      lib/docs/filters/tcl_tk/clean_html.rb

+ 4 - 0
lib/docs/filters/tcl_tk/clean_html.rb

@@ -35,6 +35,10 @@ module Docs
           node.content = node.content.capitalize
         end
 
+        css('pre').each do |node|
+          node['data-language'] = 'tcl'
+        end
+
         doc
       end
     end