Browse Source

tcllib: enable syntax highlighting

Simon Legner 4 months ago
parent
commit
c1495237cb
2 changed files with 1204 additions and 1260 deletions
  1. 1200 1260
      assets/javascripts/vendor/prism.js
  2. 4 0
      lib/docs/filters/tcllib/clean_html.rb

File diff suppressed because it is too large
+ 1200 - 1260
assets/javascripts/vendor/prism.js


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

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

Some files were not shown because too many files changed in this diff