aboutsummaryrefslogtreecommitdiff
path: root/js/codemirror/mode/htmlmixed/index.html
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/codemirror/mode/htmlmixed/index.html
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/codemirror/mode/htmlmixed/index.html')
-rw-r--r--js/codemirror/mode/htmlmixed/index.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/js/codemirror/mode/htmlmixed/index.html b/js/codemirror/mode/htmlmixed/index.html
new file mode 100644
index 00000000..6d62b355
--- /dev/null
+++ b/js/codemirror/mode/htmlmixed/index.html
@@ -0,0 +1,52 @@
1<!doctype html>
2<html>
3 <head>
4 <title>CodeMirror 2: HTML mixed mode</title>
5 <link rel="stylesheet" href="../../lib/codemirror.css">
6 <script src="../../lib/codemirror.js"></script>
7 <script src="../xml/xml.js"></script>
8 <script src="../javascript/javascript.js"></script>
9 <script src="../css/css.js"></script>
10 <link rel="stylesheet" href="../../theme/default.css">
11 <script src="htmlmixed.js"></script>
12 <link rel="stylesheet" href="../../css/docs.css">
13 <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
14 </head>
15 <body>
16 <h1>CodeMirror 2: HTML mixed mode</h1>
17 <form><textarea id="code" name="code">
18<html style="color: green">
19 <!-- this is a comment -->
20 <head>
21 <title>Mixed HTML Example</title>
22 <style type="text/css">
23 h1 {font-family: comic sans; color: #f0f;}
24 div {background: yellow !important;}
25 body {
26 max-width: 50em;
27 margin: 1em 2em 1em 5em;
28 }
29 </style>
30 </head>
31 <body>
32 <h1>Mixed HTML Example</h1>
33 <script>
34 function jsFunc(arg1, arg2) {
35 if (arg1 && arg2) document.body.innerHTML = "achoo";
36 }
37 </script>
38 </body>
39</html>
40</textarea></form>
41 <script>
42 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: "text/html", tabMode: "indent"});
43 </script>
44
45 <p>The HTML mixed mode depends on the XML, JavaScript, and CSS modes.</p>
46
47 <p><strong>MIME types defined:</strong> <code>text/html</code>
48 (redefined, only takes effect if you load this parser after the
49 XML parser).</p>
50
51 </body>
52</html>