aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/mode/yaml/index.html
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-01-27 12:05:17 -0800
committerJose Antonio Marquez2012-01-27 12:05:17 -0800
commit3a754133dbc138390503341fd2e9beba3e43aa4b (patch)
treecdeae7d7dd9a30d7b4fab5afb7efad68d4ec7508 /imports/codemirror/mode/yaml/index.html
parentb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (diff)
downloadninja-3a754133dbc138390503341fd2e9beba3e43aa4b.tar.gz
Merged old FileIO
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>