equal
deleted
inserted
replaced
647 |
647 |
648 def xml_markup( |
648 def xml_markup( |
649 range: Text.Range = Text.Range.full, |
649 range: Text.Range = Text.Range.full, |
650 elements: Markup.Elements = Markup.Elements.full): XML.Body = |
650 elements: Markup.Elements = Markup.Elements.full): XML.Body = |
651 state.xml_markup(version, node_name, range = range, elements = elements) |
651 state.xml_markup(version, node_name, range = range, elements = elements) |
652 |
|
653 def xml_markup_blobs( |
|
654 elements: Markup.Elements = Markup.Elements.full |
|
655 ) : List[(Command.Blob, XML.Body)] = { |
|
656 snippet_command match { |
|
657 case None => Nil |
|
658 case Some(command) => |
|
659 for { |
|
660 Exn.Res(blob) <- command.blobs |
|
661 blob_node = get_node(blob.name) |
|
662 if blob_node.source_wellformed |
|
663 } |
|
664 yield { |
|
665 val text = blob_node.source |
|
666 val markup = command.init_markups(Command.Markup_Index.blob(blob)) |
|
667 blob -> markup.to_XML(Text.Range.length(text), text, elements) |
|
668 } |
|
669 } |
|
670 } |
|
671 |
652 |
672 |
653 |
673 /* messages */ |
654 /* messages */ |
674 |
655 |
675 lazy val messages: List[(XML.Elem, Position.T)] = |
656 lazy val messages: List[(XML.Elem, Position.T)] = |