Przeglądaj źródła

tcl_tk: enable syntax highlighting

Simon Legner 4 miesięcy temu
rodzic
commit
6b680d1762
1 zmienionych plików z 4 dodań i 0 usunięć
  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