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: JSON-LD 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="../../addon/comment/continuecomment.js"></script>
9
<script src="../../addon/comment/comment.js"></script>
10
<script src="javascript.js"></script>
11
<style type="text/css">
12
    .CodeMirror {
13
        border-top: 1px solid black;
14
        border-bottom: 1px solid black;
15
    }
16
</style>
17
<div id="nav">
18
    <a href="http://codemirror.net">
19
        <h1>CodeMirror</h1>
20
        <img id=logo src="../../doc/logo.png" />
21
    </a>
22
    <ul>
23
        <li>
24
            <a href="../../index.html">Home</a>
25
            <li>
26
                <a href="../../doc/manual.html">Manual</a>
27
                <li>
28
                    <a href="https://github.com/codemirror/codemirror">Code</a>
29
    </ul>
30
    <ul>
31
        <li>
32
            <a href="../index.html">Language modes</a>
33
            <li>
34
                <a class=active href="#">JSON-LD</a>
35
    </ul>
36
</div>
37
<article>
38
    <h2>JSON-LD mode</h2>
39
    <div>
40
        <textarea id="code" name="code"> { "@context": { "name": "http://schema.org/name", "description": "http://schema.org/description", "image": { "@id": "http://schema.org/image", "@type": "@id" }, "geo": "http://schema.org/geo", "latitude": { "@id": "http://schema.org/latitude",
41
            "@type": "xsd:float" }, "longitude": { "@id": "http://schema.org/longitude", "@type": "xsd:float" }, "xsd": "http://www.w3.org/2001/XMLSchema#" }, "name": "The Empire State Building", "description": "The Empire State Building is a 102-story
42
            landmark in New York City.", "image": "http://www.civil.usherbrooke.ca/cours/gci215a/empire-state-building.jpg", "geo": { "latitude": "40.75", "longitude": "73.98" } } </textarea>
43
    </div>
44
    <script>
45
        var editor = CodeMirror.fromTextArea(document.getElementById("code"),
46
        {
47
            matchBrackets: true,
48
            autoCloseBrackets: true,
49
            mode: "application/ld+json",
50
            lineWrapping: true
51
        });
52
    </script>
53
    <p>This is a specialization of the
54
        <a href="index.html">JavaScript mode</a>.</p>
55
</article>