]> matita.cs.unibo.it Git - helm.git/commitdiff
raw HTML markap generator
authorFerruccio Guidi <ferruccio.guidi@unibo.it>
Wed, 4 Sep 2002 17:05:21 +0000 (17:05 +0000)
committerFerruccio Guidi <ferruccio.guidi@unibo.it>
Wed, 4 Sep 2002 17:05:21 +0000 (17:05 +0000)
helm/ocaml/mathql/mQueryHTML.ml [new file with mode: 0644]

diff --git a/helm/ocaml/mathql/mQueryHTML.ml b/helm/ocaml/mathql/mQueryHTML.ml
new file mode 100644 (file)
index 0000000..ff6cb11
--- /dev/null
@@ -0,0 +1,21 @@
+(* raw HTML representation **************************************************)
+
+let key s = "<font color=\"blue\">" ^ s ^ " </font>"
+
+let sub s = "<font color=\"blue\"> " ^ s ^ " </font>"
+
+let sub2 s = "<font color=\"blue\">" ^ s ^ "</font>"
+
+let sym s = s
+
+let sep s = s
+
+let str s = "<font color=\"red\">'" ^ s ^ "'</font>"
+
+let pat s = "<font color=\"red\">\"" ^ s ^ "\"</font>"
+
+let res s = "<font color=\"brown\">\"" ^ s ^ "\"</font>"
+
+let nl () = "<br>\n"
+
+let par () = "<p>\n"