Method: IsoDoc::PresentationXMLConvert#sourcecode

Defined in:
lib/isodoc/presentation_function/sourcecode.rb

#sourcecode(docxml) ⇒ Object



41
42
43
44
45
46
47
48
49
50
# File 'lib/isodoc/presentation_function/sourcecode.rb', line 41

def sourcecode(docxml)
  sourcehighlighter_css(docxml)
  @highlighter = sourcehighlighter
  @callouts = {}
  (docxml.xpath(ns("//sourcecode")) - 
   docxml.xpath(ns("//metanorma-extension//sourcecode")))
    .each do |f|
    sourcecode1(f)
  end
end