1
0

index.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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">
  11. </head>
  12. <body>
  13. <h1>CodeMirror: Properties files mode</h1>
  14. <form><textarea id="code" name="code">
  15. # This is a properties file
  16. a.key = A value
  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\
  23. line entries,\
  24. that's convenient.
  25. # Unicode sequences
  26. unicode.key=This is \u0020 Unicode
  27. no.multiline=here
  28. # Colons
  29. colons : can be used too
  30. # Spaces
  31. spaces\ in\ keys=Not very common...
  32. </textarea></form>
  33. <script>
  34. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
  35. </script>
  36. <p><strong>MIME types defined:</strong> <code>text/x-properties</code>,
  37. <code>text/x-ini</code>.</p>
  38. </body>
  39. </html>