瀏覽代碼

tcl_tk: enable syntax highlighting

Simon Legner 4 月之前
父節點
當前提交
6b680d1762
共有 1 個文件被更改,包括 4 次插入0 次删除
  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