src/Tools/VSCode/src/preview.scala
changeset 65996 e72f7291ad6c
parent 65995 145283346958
child 65998 d07300e8a14d
equal deleted inserted replaced
65995:145283346958 65996:e72f7291ad6c
    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(head = Nil, css = "", body =
    48       HTML.output_document(Nil,
    49         List(
    49         List(
    50           HTML.chapter("Theory " + quote(model.node_name.theory_base_name)),
    50           HTML.chapter("Theory " + quote(model.node_name.theory_base_name)),
    51           HTML.source(Symbol.decode(snapshot.node.commands.iterator.map(_.source).mkString))))
    51           HTML.source(Symbol.decode(snapshot.node.commands.iterator.map(_.source).mkString))),
       
    52         css = Url.print_file(Path.explode("~~/etc/isabelle.css").file))
    52     (label, content)
    53     (label, content)
    53   }
    54   }
    54 }
    55 }