diff options
author | Nivesh Rajbhandari | 2012-02-20 11:14:44 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-20 11:14:44 -0800 |
commit | abf78e2d7a97d295ce5a1c425fd359d47379137e (patch) | |
tree | d08c91bd2aef31e6325e0b499b2ffc390018bec6 /js/codemirror/mode/xml/index.html | |
parent | e80a79bff57fecf3aa9b869d8ed2de5fd815287c (diff) | |
parent | e23708721a71ca4c71365f5f8e8ac7d6113926db (diff) | |
download | ninja-abf78e2d7a97d295ce5a1c425fd359d47379137e.tar.gz |
Merge branch 'refs/heads/ninja-internal' into ToolFixes
Diffstat (limited to 'js/codemirror/mode/xml/index.html')
-rw-r--r-- | js/codemirror/mode/xml/index.html | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/js/codemirror/mode/xml/index.html b/js/codemirror/mode/xml/index.html deleted file mode 100644 index 122848ae..00000000 --- a/js/codemirror/mode/xml/index.html +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>CodeMirror 2: XML mode</title> | ||
5 | <link rel="stylesheet" href="../../lib/codemirror.css"> | ||
6 | <script src="../../lib/codemirror.js"></script> | ||
7 | <script src="xml.js"></script> | ||
8 | <link rel="stylesheet" href="../../theme/default.css"> | ||
9 | <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | ||
10 | <link rel="stylesheet" href="../../css/docs.css"> | ||
11 | </head> | ||
12 | <body> | ||
13 | <h1>CodeMirror 2: XML mode</h1> | ||
14 | <form><textarea id="code" name="code"> | ||
15 | <html style="color: green"> | ||
16 | <!-- this is a comment --> | ||
17 | <head> | ||
18 | <title>HTML Example</title> | ||
19 | </head> | ||
20 | <body> | ||
21 | The indentation tries to be <em>somewhat &quot;do what | ||
22 | I mean&quot;</em>... but might not match your style. | ||
23 | </body> | ||
24 | </html> | ||
25 | </textarea></form> | ||
26 | <script> | ||
27 | var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: {name: "xml", htmlMode: true}}); | ||
28 | </script> | ||
29 | <p>The XML mode supports two configuration parameters:</p> | ||
30 | <dl> | ||
31 | <dt><code>htmlMode (boolean)</code></dt> | ||
32 | <dd>This switches the mode to parse HTML instead of XML. This | ||
33 | means attributes do not have to be quoted, and some elements | ||
34 | (such as <code>br</code>) do not require a closing tag.</dd> | ||
35 | <dt><code>alignCDATA (boolean)</code></dt> | ||
36 | <dd>Setting this to true will force the opening tag of CDATA | ||
37 | blocks to not be indented.</dd> | ||
38 | </dl> | ||
39 | |||
40 | <p><strong>MIME types defined:</strong> <code>application/xml</code>, <code>text/html</code>.</p> | ||
41 | </body> | ||
42 | </html> | ||