Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
5 lars 1
<!doctype html>
2
<title>CodeMirror: Jade Templating Mode</title>
3
<meta charset="utf-8" />
4
<link rel=stylesheet href="../../doc/docs.css">
5
<link rel="stylesheet" href="../../lib/codemirror.css">
6
<script src="../../lib/codemirror.js"></script>
7
<script src="../javascript/javascript.js"></script>
8
<script src="../css/css.js"></script>
9
<script src="../xml/xml.js"></script>
10
<script src="../htmlmixed/htmlmixed.js"></script>
11
<script src="jade.js"></script>
12
<style type="text/css">
13
    .CodeMirror {
14
        border-top: 1px solid black;
15
        border-bottom: 1px solid black;
16
    }
17
</style>
18
<div id=nav>
19
    <a href="http://codemirror.net">
20
        <h1>CodeMirror</h1>
21
        <img id=logo src="../../doc/logo.png">
22
    </a>
23
    <ul>
24
        <li>
25
            <a href="../../index.html">Home</a>
26
            <li>
27
                <a href="../../doc/manual.html">Manual</a>
28
                <li>
29
                    <a href="https://github.com/codemirror/codemirror">Code</a>
30
    </ul>
31
    <ul>
32
        <li>
33
            <a href="../index.html">Language modes</a>
34
            <li>
35
                <a class=active href="#">Jade Templating Mode</a>
36
    </ul>
37
</div>
38
<article>
39
    <h2>Jade Templating Mode</h2>
40
    <form>
41
        <textarea id="code" name="code"> doctype html html head title= "Jade Templating CodeMirror Mode Example" link(rel='stylesheet', href='/css/bootstrap.min.css') link(rel='stylesheet', href='/css/index.css') script(type='text/javascript', src='/js/jquery-1.9.1.min.js') script(type='text/javascript',
42
            src='/js/bootstrap.min.js') body div.header h1 Welcome to this Example div.spots if locals.spots each spot in spots div.spot.well div if spot.logo img.img-rounded.logo(src=spot.logo) else img.img-rounded.logo(src="img/placeholder.png") h3
43
            a(href=spot.hash) ##{spot.hash} if spot.title span.title #{spot.title} if spot.desc div #{spot.desc} else h3 There are no spots currently available. </textarea>
44
    </form>
45
    <script>
46
        var editor = CodeMirror.fromTextArea(document.getElementById("code"),
47
        {
48
            mode:
49
            {
50
                name: "jade",
51
                alignCDATA: true
52
            },
53
            lineNumbers: true
54
        });
55
    </script>
56
    <h3>The Jade Templating Mode</h3>
57
    <p> Created by Forbes Lindesay. Managed as part of a Brackets extension at
58
        <a href="https://github.com/ForbesLindesay/jade-brackets">https://github.com/ForbesLindesay/jade-brackets</a>.</p>
59
    <p>
60
        <strong>MIME type defined:</strong> <code>text/x-jade</code>.</p>
61
</article>