Module: SketchUpYARD::HTMLHelper
- Defined in:
- lib/yard-sketchup/yard/html_helper.rb
Overview
Injection pattern copied from YARD::CodeRay: github.com/sagmor/yard-coderay/blob/master/lib/yard/coderay/html_helper.rb
Instance Method Summary collapse
Instance Method Details
#html_syntax_highlight_cpp(source) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/yard-sketchup/yard/html_helper.rb', line 7 def html_syntax_highlight_cpp(source) # puts "html_syntax_highlight_cpp (GEM)" formatter = Rouge::Formatters::HTML.new lexer = Rouge::Lexers::Cpp.new formatter.format(lexer.lex(source)) end |