src/Tools/VSCode/src/preview.scala
changeset 66000 58aa6749ff36
parent 65998 d07300e8a14d
child 66040 f826ba18fe08
equal deleted inserted replaced
65999:ee4cf96a9406 66000:58aa6749ff36
    43 
    43 
    44   def make_preview(model: Document_Model, snapshot: Document.Snapshot): (String, String) =
    44   def make_preview(model: Document_Model, snapshot: Document.Snapshot): (String, String) =
    45   {
    45   {
    46     val label = "Preview " + quote(model.node_name.toString)
    46     val label = "Preview " + quote(model.node_name.toString)
    47     val content =
    47     val content =
    48       HTML.output_document(Nil,
    48       HTML.output_document(
       
    49         List(HTML.style(HTML.fonts_css()), HTML.style_file(Url.print_file(HTML.isabelle_css.file))),
    49         List(
    50         List(
    50           HTML.chapter("Theory " + quote(model.node_name.theory_base_name)),
    51           HTML.chapter("Theory " + quote(model.node_name.theory_base_name)),
    51           HTML.source(Symbol.decode(snapshot.node.commands.iterator.map(_.source).mkString))),
    52           HTML.source(Symbol.decode(snapshot.node.commands.iterator.map(_.source).mkString))),
    52         css = Url.print_file(HTML.isabelle_css.file))
    53         css = "")
    53     (label, content)
    54     (label, content)
    54   }
    55   }
    55 }
    56 }