Method: IsoDoc::PresentationXMLConvert#sourcehighlighter
- Defined in:
- lib/isodoc/presentation_function/sourcecode.rb
#sourcehighlighter ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/isodoc/presentation_function/sourcecode.rb', line 26 def sourcehighlighter @sourcehighlighter or return Rouge::Formatter.enable_escape! f = Rouge::Formatters::HTML.new opts = { gutter_class: "rouge-gutter", code_class: "rouge-code" } f1 = Rouge::Formatters::HTMLLineTable.new(f, opts) { formatter: f, formatter_line: f1 } end |