0e68ba8ac41638e26dfb0be0b354fddee07d695b
[myslice.git] / third-party / codemirror-3.15 / mode / jade / index.html
1 <!doctype html>
2 <html>
3   <head>
4     <meta charset="utf-8">
5     <title>CodeMirror: Jade Templating Mode</title>
6     <link rel="stylesheet" href="../../lib/codemirror.css">
7     <script src="../../lib/codemirror.js"></script>
8     <script src="jade.js"></script>
9     <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
10     <link rel="stylesheet" href="../../doc/docs.css">
11   </head>
12   <body>
13     <h1>CodeMirror: Jade Templating Mode</h1>
14     <form><textarea id="code" name="code">
15 doctype 5
16   html
17     head
18       title= "Jade Templating CodeMirror Mode Example"
19       link(rel='stylesheet', href='/css/bootstrap.min.css')
20       link(rel='stylesheet', href='/css/index.css')
21       script(type='text/javascript', src='/js/jquery-1.9.1.min.js')
22       script(type='text/javascript', src='/js/bootstrap.min.js')
23     body
24       div.header
25         h1 Welcome to this Example
26       div.spots
27         if locals.spots
28           each spot in spots
29             div.spot.well
30          div
31            if spot.logo
32              img.img-rounded.logo(src=spot.logo)
33            else
34              img.img-rounded.logo(src="img/placeholder.png")
35          h3
36            a(href=spot.hash) ##{spot.hash}
37            if spot.title
38              span.title #{spot.title}
39            if spot.desc
40              div #{spot.desc}
41         else
42           h3 There are no spots currently available.
43 </textarea></form>
44     <script>
45       var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
46         mode: {name: "jade", alignCDATA: true},
47         lineNumbers: true
48       });
49     </script>
50     <h3>The Jade Templating Mode</h3>
51       <p> Created by Drew Bratcher. Managed as part of an Adobe Brackets extension at <a href="https://github.com/dbratcher/brackets-jade">https://github.com/dbratcher/brackets-jade</a>.</p>
52     <p><strong>MIME type defined:</strong> <code>text/x-jade</code>.</p>
53   </body>
54 </html>