5 <title>CodeMirror: YAML mode</title>
6 <link rel="stylesheet" href="../../lib/codemirror.css">
7 <script src="../../lib/codemirror.js"></script>
8 <script src="yaml.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: YAML mode</h1>
14 <form><textarea id="code" name="code">
18 - The Man Who Wasn't There
20 [milk, pumpkin pie, eggs, juice]
21 --- # Indented Blocks, common in YAML data files, use indentation and new lines to separate the key: value pairs
24 --- # Inline Blocks, common in YAML data streams, use commas to separate the key: value pairs between braces
25 {name: John Smith, age: 33}
27 receipt: Oz-Ware Purchase Invoice
35 descrip: Water Bucket (Filled)
40 descrip: High Heeled "Ruby" Slippers
49 city: East Centerville
55 Follow the Yellow Brick
56 Road to the Emerald City.
57 Pay no attention to the
58 man behind the curtain.
62 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
65 <p><strong>MIME types defined:</strong> <code>text/x-yaml</code>.</p>