Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
<!doctype html>
2
<title>CodeMirror: CSS mode</title>
3
<meta charset="utf-8" />
4
<link rel=stylesheet href="../../doc/docs.css">
5
<link rel="stylesheet" href="../../lib/codemirror.css">
6
<link rel="stylesheet" href="../../addon/hint/show-hint.css">
7
<script src="../../lib/codemirror.js"></script>
8
<script src="css.js"></script>
9
<script src="../../addon/hint/show-hint.js"></script>
10
<script src="../../addon/hint/css-hint.js"></script>
11
<style>
12
    .CodeMirror {
13
        background: #f8f8f8;
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="#">CSS</a>
34
    </ul>
35
</div>
36
<article>
37
    <h2>CSS mode</h2>
38
    <form>
39
        <textarea id="code" name="code"> /* Some example CSS */ @import url("something.css"); body { margin: 0; padding: 3em 6em; font-family: tahoma, arial, sans-serif; color: #000; } #navigation a { font-weight: bold; text-decoration: none !important; } h1 { font-size: 2.5em; } h2
40
            { font-size: 1.7em; } h1:before, h2:before { content: "::"; } code { font-family: courier, monospace; font-size: 80%; color: #418A8A; } </textarea>
41
    </form>
42
    <script>
43
        var editor = CodeMirror.fromTextArea(document.getElementById("code"),
44
        {
45
            extraKeys:
46
            {
47
                "Ctrl-Space": "autocomplete"
48
            },
49
        });
50
    </script>
51
    <p>
52
        <strong>MIME types defined:</strong> <code>text/css</code>, <code>text/x-scss</code> (
53
        <a href="scss.html">demo</a>), <code>text/x-less</code> (
54
        <a href="less.html">demo</a>).</p>
55
    <p>
56
        <strong>Parsing/Highlighting Tests:</strong>
57
        <a href="../../test/index.html#css_*">normal</a>,
58
        <a href="../../test/index.html#verbose,css_*">verbose</a>.</p>
59
</article>