3 <title>CodeMirror: JSON-LD mode
</title>
4 <meta charset=
"utf-8"/>
5 <link rel=stylesheet
href=
"../../doc/docs.css">
7 <link rel=
"stylesheet" href=
"../../lib/codemirror.css">
8 <script src=
"../../lib/codemirror.js"></script>
9 <script src=
"../../addon/edit/matchbrackets.js"></script>
10 <script src=
"../../addon/comment/continuecomment.js"></script>
11 <script src=
"../../addon/comment/comment.js"></script>
12 <script src=
"javascript.js"></script>
13 <style type=
"text/css">.CodeMirror {border-top:
1px solid black; border-bottom:
1px solid black;}
</style>
15 <a href=
"http://codemirror.net"><img id=logo
src=
"../../doc/logo.png"/></a>
18 <li><a href=
"../../index.html">Home
</a>
19 <li><a href=
"../../doc/manual.html">Manual
</a>
20 <li><a href=
"https://github.com/marijnh/codemirror">Code
</a>
23 <li><a href=
"../index.html">Language modes
</a>
24 <li><a class=active
href=
"#">JSON-LD
</a>
32 <div><textarea id=
"code" name=
"code">
35 "name":
"http://schema.org/name",
36 "description":
"http://schema.org/description",
38 "@id":
"http://schema.org/image",
41 "geo":
"http://schema.org/geo",
43 "@id":
"http://schema.org/latitude",
47 "@id":
"http://schema.org/longitude",
50 "xsd":
"http://www.w3.org/2001/XMLSchema#"
52 "name":
"The Empire State Building",
53 "description":
"The Empire State Building is a 102-story landmark in New York City.",
54 "image":
"http://www.civil.usherbrooke.ca/cours/gci215a/empire-state-building.jpg",
63 var editor = CodeMirror.fromTextArea(document.getElementById(
"code"), {
65 autoCloseBrackets: true,
66 mode:
"application/ld+json",
71 <p>This is a specialization of the
<a href=
"index.html">JavaScript mode
</a>.
</p>