diff options
author | Pushkar Joshi | 2012-02-24 12:08:49 -0800 |
---|---|---|
committer | Pushkar Joshi | 2012-02-24 12:08:49 -0800 |
commit | 03ca7a5ed13c25faaa9100bb666e062fd15335e6 (patch) | |
tree | c51112223ceb9121cd595a60335eb2795215590f /imports/codemirror/mode/xml/index.html | |
parent | fcb12cc09eb3cd3b42bd215877ba18f449275b75 (diff) | |
parent | 053fc63a2950c7a5ee4ebf98033b64d474a3c46e (diff) | |
download | ninja-03ca7a5ed13c25faaa9100bb666e062fd15335e6.tar.gz |
Merge branch 'pentool' into brushtool
Conflicts:
imports/codemirror/mode/scheme/scheme.js
js/tools/BrushTool.js
Diffstat (limited to 'imports/codemirror/mode/xml/index.html')
-rwxr-xr-x | imports/codemirror/mode/xml/index.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/imports/codemirror/mode/xml/index.html b/imports/codemirror/mode/xml/index.html new file mode 100755 index 00000000..3b6d6af1 --- /dev/null +++ b/imports/codemirror/mode/xml/index.html | |||
@@ -0,0 +1,44 @@ | |||
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>CodeMirror: 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 | <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | ||
9 | <link rel="stylesheet" href="../../doc/docs.css"> | ||
10 | </head> | ||
11 | <body> | ||
12 | <h1>CodeMirror: XML mode</h1> | ||
13 | <form><textarea id="code" name="code"> | ||
14 | <html style="color: green"> | ||
15 | <!-- this is a comment --> | ||
16 | <head> | ||
17 | <title>HTML Example</title> | ||
18 | </head> | ||
19 | <body> | ||
20 | The indentation tries to be <em>somewhat &quot;do what | ||
21 | I mean&quot;</em>... but might not match your style. | ||
22 | </body> | ||
23 | </html> | ||
24 | </textarea></form> | ||
25 | <script> | ||
26 | var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | ||
27 | mode: {name: "xml", alignCDATA: true}, | ||
28 | lineNumbers: true | ||
29 | }); | ||
30 | </script> | ||
31 | <p>The XML mode supports two configuration parameters:</p> | ||
32 | <dl> | ||
33 | <dt><code>htmlMode (boolean)</code></dt> | ||
34 | <dd>This switches the mode to parse HTML instead of XML. This | ||
35 | means attributes do not have to be quoted, and some elements | ||
36 | (such as <code>br</code>) do not require a closing tag.</dd> | ||
37 | <dt><code>alignCDATA (boolean)</code></dt> | ||
38 | <dd>Setting this to true will force the opening tag of CDATA | ||
39 | blocks to not be indented.</dd> | ||
40 | </dl> | ||
41 | |||
42 | <p><strong>MIME types defined:</strong> <code>application/xml</code>, <code>text/html</code>.</p> | ||
43 | </body> | ||
44 | </html> | ||