Browse Source

Add syntax highlighting to Groovy

Phil Scherer 5 years ago
parent
commit
299f24a049
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/docs/filters/groovy/clean_html.rb

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

@@ -86,6 +86,10 @@ module Docs
           node.name = node.name.sub(/\d/) { |i| i.to_i - 1 }
         end
 
+        css('pre').each do |node|
+          node['data-language'] = 'groovy'
+        end
+
         doc
       end
     end