aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/xmlpure/index.html
diff options
context:
space:
mode:
authorJonathan Duran2012-07-17 11:42:09 -0700
committerJonathan Duran2012-07-17 11:42:09 -0700
commitb4b3e45d6684e77d361b4f8ca5be4889428320c5 (patch)
tree2156d9920ea1b7db49ed6460545fea7cda121bae /imports/codemirror/mode/xmlpure/index.html
parent4a87ff575693509ac578d46af26fa137c0dc3f58 (diff)
parent4f737b24c19ddc02d20f9783b8b080fc6ef11142 (diff)
downloadninja-b4b3e45d6684e77d361b4f8ca5be4889428320c5.tar.gz
Merge branch 'refs/heads/NINJA-master' into TimelineUber
Diffstat (limited to 'imports/codemirror/mode/xmlpure/index.html')
-rw-r--r--imports/codemirror/mode/xmlpure/index.html58
1 files changed, 0 insertions, 58 deletions
diff --git a/imports/codemirror/mode/xmlpure/index.html b/imports/codemirror/mode/xmlpure/index.html
deleted file mode 100644
index 0fdac7e5..00000000
--- a/imports/codemirror/mode/xmlpure/index.html
+++ /dev/null
@@ -1,58 +0,0 @@
1<!doctype html>
2<html>
3 <head>
4 <title>CodeMirror: Pure XML mode</title>
5 <link rel="stylesheet" href="../../lib/codemirror.css">
6 <script src="../../lib/codemirror.js"></script>
7 <script src="xmlpure.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&lt;?xml version="1.0" encoding="UTF-8" standalone="no" ?&gt;
15
16&lt;!-- This is the pure XML mode,
17and we're inside a comment! --&gt;
18
19&lt;catalog&gt;
20 &lt;books&gt;
21 &lt;book id="bk01"&gt;
22 &lt;title&gt;Lord of Light&lt;/title&gt;
23 &lt;author&gt;Roger Zelazny&lt;/author&gt;
24 &lt;year&gt;1967&lt;/year&gt;
25 &lt;description&gt;&lt;![CDATA[This is a great book, really!!]]&gt;&lt;/description&gt;
26 &lt;/book&gt;
27 &lt;/books&gt;
28&lt;/catalog&gt;
29</textarea></form>
30 <script>
31 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {mode: {name: "xmlpure"}});
32 </script>
33
34 <p>This is my XML parser, based on the original:</p>
35 <ul>
36 <li>No html mode - this is pure xml</li>
37 <li>Illegal attributes and element names are errors</li>
38 <li>Attributes must have a value</li>
39 <li>XML declaration supported (e.g.: <b>&lt;?xml version="1.0" encoding="utf-8" standalone="no" ?&gt;</b>)</li>
40 <li>CDATA and comment blocks are not indented (except for their start-tag)</li>
41 <li>Better handling of errors per line with the state object - provides good infrastructure for extending it</li>
42 </ul>
43
44 <p>What's missing:</p>
45 <ul>
46 <li>Make sure only a single root element exists at the document level</li>
47 <li>Multi-line attributes should NOT indent</li>
48 <li>Start tags are not painted red when they have no matching end tags (is this really wrong?)</li>
49 </ul>
50
51 <p><strong>MIME types defined:</strong> <code>application/xml</code>, <code>text/xml</code>.</p>
52
53 <p><b>@author</b>: Dror BG (<i>deebug.dev[at]gmail.com</i>)<br/>
54 <p><b>@date</b>: August, 2011<br/>
55 <p><b>@github</b>: <a href='https://github.com/deebugger/CodeMirror2' target='blank'>https://github.com/deebugger/CodeMirror2</a></p>
56
57 </body>
58</html>