Browse Source

tcl_tk: enable syntax highlighting

Simon Legner 4 months ago
parent
commit
6b680d1762
1 changed files with 4 additions and 0 deletions
  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