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: Sass 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="../../addon/edit/matchbrackets.js"></script>
8
<script src="sass.js"></script>
9
<style>
10
    .CodeMirror {
11
        border: 1px solid #ddd;
12
        font-size: 12px;
13
        height: 400px
14
    }
15
</style>
16
<div id=nav>
17
    <a href="http://codemirror.net">
18
        <h1>CodeMirror</h1>
19
        <img id=logo src="../../doc/logo.png">
20
    </a>
21
    <ul>
22
        <li>
23
            <a href="../../index.html">Home</a>
24
            <li>
25
                <a href="../../doc/manual.html">Manual</a>
26
                <li>
27
                    <a href="https://github.com/codemirror/codemirror">Code</a>
28
    </ul>
29
    <ul>
30
        <li>
31
            <a href="../index.html">Language modes</a>
32
            <li>
33
                <a class=active href="#">Sass</a>
34
    </ul>
35
</div>
36
<article>
37
    <h2>Sass mode</h2>
38
    <form>
39
        <textarea id="code" name="code">// Variable Definitions $page-width: 800px $sidebar-width: 200px $primary-color: #eeeeee // Global Attributes body font: family: sans-serif size: 30em weight: bold // Scoped Styles #contents width: $page-width #sidebar float: right width: $sidebar-width
40
            #main width: $page-width - $sidebar-width background: $primary-color h2 color: blue #footer height: 200px </textarea>
41
    </form>
42
    <script>
43
        var editor = CodeMirror.fromTextArea(document.getElementById("code"),
44
        {
45
            lineNumbers: true,
46
            matchBrackets: true
47
        });
48
    </script>
49
    <p>
50
        <strong>MIME types defined:</strong> <code>text/x-sass</code>.</p>
51
</article>