aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/yaml/index.html
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-02-20 11:14:44 -0800
committerNivesh Rajbhandari2012-02-20 11:14:44 -0800
commitabf78e2d7a97d295ce5a1c425fd359d47379137e (patch)
treed08c91bd2aef31e6325e0b499b2ffc390018bec6 /imports/codemirror/mode/yaml/index.html
parente80a79bff57fecf3aa9b869d8ed2de5fd815287c (diff)
parente23708721a71ca4c71365f5f8e8ac7d6113926db (diff)
downloadninja-abf78e2d7a97d295ce5a1c425fd359d47379137e.tar.gz
Merge branch 'refs/heads/ninja-internal' into ToolFixes
Diffstat (limited to 'imports/codemirror/mode/yaml/index.html')
-rwxr-xr-ximports/codemirror/mode/yaml/index.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/imports/codemirror/mode/yaml/index.html b/imports/codemirror/mode/yaml/index.html
new file mode 100755
index 00000000..7f2c7929
--- /dev/null
+++ b/imports/codemirror/mode/yaml/index.html
@@ -0,0 +1,67 @@
1<!doctype html>
2<html>
3 <head>
4 <title>CodeMirror: YAML mode</title>
5 <link rel="stylesheet" href="../../lib/codemirror.css">
6 <script src="../../lib/codemirror.js"></script>
7 <script src="yaml.js"></script>
8 <style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>
9 <link rel="stylesheet" href="../../doc/docs.css">
10 </head>
11 <body>
12 <h1>CodeMirror: YAML mode</h1>
13 <form><textarea id="code" name="code">
14--- # Favorite movies
15- Casablanca
16- North by Northwest
17- The Man Who Wasn't There
18--- # Shopping list
19[milk, pumpkin pie, eggs, juice]
20--- # Indented Blocks, common in YAML data files, use indentation and new lines to separate the key: value pairs
21 name: John Smith
22 age: 33
23--- # Inline Blocks, common in YAML data streams, use commas to separate the key: value pairs between braces
24{name: John Smith, age: 33}
25---
26receipt: Oz-Ware Purchase Invoice
27date: 2007-08-06
28customer:
29 given: Dorothy
30 family: Gale
31
32items:
33 - part_no: A4786
34 descrip: Water Bucket (Filled)
35 price: 1.47
36 quantity: 4
37
38 - part_no: E1628
39 descrip: High Heeled "Ruby" Slippers
40 size: 8
41 price: 100.27
42 quantity: 1
43
44bill-to: &id001
45 street: |
46 123 Tornado Alley
47 Suite 16
48 city: East Centerville
49 state: KS
50
51ship-to: *id001
52
53specialDelivery: >
54 Follow the Yellow Brick
55 Road to the Emerald City.
56 Pay no attention to the
57 man behind the curtain.
58...
59</textarea></form>
60 <script>
61 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
62 </script>
63
64 <p><strong>MIME types defined:</strong> <code>text/x-yaml</code>.</p>
65
66 </body>
67</html>