Sha256: 803cb342246227ba1b934b34d04203ae1840046fd096d6a756ab573f163a8fed

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

module YARD::CodeRay::HTMLHelper
  CodeRay::Scanners.list.each do |scanner|
    define_method("html_syntax_highlight_#{scanner}") do |source|
      CodeRay.scan(source, scanner).html(css: :style)
    end
  end
end

# Inject Coderay highlighting into YARD
YARD::Templates::Helpers::HtmlHelper.include YARD::CodeRay::HTMLHelper

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yard-coderay-0.1.0 lib/yard/coderay/html_helper.rb