Method: IsoDoc::PresentationXMLConvert#sourcecode1

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

#sourcecode1(elem) ⇒ Object



52
53
54
55
56
57
58
59
60
61
# File 'lib/isodoc/presentation_function/sourcecode.rb', line 52

def sourcecode1(elem)
  ret1 = semx_fmt_dup(elem)
  b = ret1.at(ns(".//body")) and b.replace(b.children)
  #sourcecode_annot_id(elem)
  source_label(elem)
  source_highlight(ret1, elem["linenums"] == "true", elem["lang"])
  callouts(elem)
  annotations(elem, ret1)
  fmt_sourcecode(elem, ret1)
end