PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 2.0.2
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v2.0.2
4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 All 340 releases
profile-builder / assets / lib / codemirror / mode / xml / index.html

index.html in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 2.0.2, at assets/lib/codemirror/mode/xml/index.html

58 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <!doctype html>
2
3 <title>CodeMirror: XML mode</title>
4 <meta charset="utf-8"/>
5 <link rel=stylesheet href="../../doc/docs.css">
6
7 <link rel="stylesheet" href="../../lib/codemirror.css">
8 <script src="../../lib/codemirror.js"></script>
9 <script src="xml.js"></script>
10 <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
11 <div id=nav>
12 <a href="http://codemirror.net"><img id=logo src="../../doc/logo.png"></a>
13
14 <ul>
15 <li><a href="../../index.html">Home</a>
16 <li><a href="../../doc/manual.html">Manual</a>
17 <li><a href="https://github.com/marijnh/codemirror">Code</a>
18 </ul>
19 <ul>
20 <li><a href="../index.html">Language modes</a>
21 <li><a class=active href="#">XML</a>
22 </ul>
23 </div>
24
25 <article>
26 <h2>XML mode</h2>
27 <form><textarea id="code" name="code">
28 &lt;html style="color: green"&gt;
29 &lt;!-- this is a comment --&gt;
30 &lt;head&gt;
31 &lt;title&gt;HTML Example&lt;/title&gt;
32 &lt;/head&gt;
33 &lt;body&gt;
34 The indentation tries to be &lt;em&gt;somewhat &amp;quot;do what
35 I mean&amp;quot;&lt;/em&gt;... but might not match your style.
36 &lt;/body&gt;
37 &lt;/html&gt;
38 </textarea></form>
39 <script>
40 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
41 mode: {name: "xml", alignCDATA: true},
42 lineNumbers: true
43 });
44 </script>
45 <p>The XML mode supports two configuration parameters:</p>
46 <dl>
47 <dt><code>htmlMode (boolean)</code></dt>
48 <dd>This switches the mode to parse HTML instead of XML. This
49 means attributes do not have to be quoted, and some elements
50 (such as <code>br</code>) do not require a closing tag.</dd>
51 <dt><code>alignCDATA (boolean)</code></dt>
52 <dd>Setting this to true will force the opening tag of CDATA
53 blocks to not be indented.</dd>
54 </dl>
55
56 <p><strong>MIME types defined:</strong> <code>application/xml</code>, <code>text/html</code>.</p>
57 </article>
58