5 <title>CodeMirror: Properties files mode</title>
6 <link rel="stylesheet" href="../../lib/codemirror.css">
7 <script src="../../lib/codemirror.js"></script>
8 <script src="properties.js"></script>
9 <style>.CodeMirror {border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;}</style>
10 <link rel="stylesheet" href="../../doc/docs.css">
13 <h1>CodeMirror: Properties files mode</h1>
14 <form><textarea id="code" name="code">
15 # This is a properties file
17 another.key = http://example.com
18 ! Exclamation mark as comment
19 but.not=Within ! A value # indeed
20 # Spaces at the beginning of a line
21 spaces.before.key=value
22 backslash=Used for multi\
26 unicode.key=This is \u0020 Unicode
29 colons : can be used too
31 spaces\ in\ keys=Not very common...
34 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
37 <p><strong>MIME types defined:</strong> <code>text/x-properties</code>,
38 <code>text/x-ini</code>.</p>