Class: Wst::HTMLwithPygments
- Inherits:
-
Redcarpet::Render::XHTML
- Object
- Redcarpet::Render::XHTML
- Wst::HTMLwithPygments
- Defined in:
- lib/wst/html_with_pygments.rb
Instance Method Summary collapse
Instance Method Details
#block_code(code, language) ⇒ Object
6 7 8 |
# File 'lib/wst/html_with_pygments.rb', line 6 def block_code(code, language) Pygments.highlight(code, :lexer => language) end |