File modules/editor/codemirror/mode/javascript/json-ld.html

Last commit: Sun Dec 17 01:14:09 2017 +0100	Jan Dankert	Integration eines weiteren Code-Editors: Codemirror. Demnächst müssen wir hier mal aufräumen und andere Editoren rauswerfen.
1 <!doctype html> 2 3 <title>CodeMirror: JSON-LD mode</title> 4 <meta charset="utf-8"/> 5 <link rel=stylesheet href="../../doc/docs.css"> 6 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> 14 <div id="nav"> 15 <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"/></a> 16 17 <ul> 18 <li><a href="../../index.html">Home</a> 19 <li><a href="../../doc/manual.html">Manual</a> 20 <li><a href="https://github.com/codemirror/codemirror">Code</a> 21 </ul> 22 <ul> 23 <li><a href="../index.html">Language modes</a> 24 <li><a class=active href="#">JSON-LD</a> 25 </ul> 26 </div> 27 28 <article> 29 <h2>JSON-LD mode</h2> 30 31 32 <div><textarea id="code" name="code"> 33 { 34 "@context": { 35 "name": "http://schema.org/name", 36 "description": "http://schema.org/description", 37 "image": { 38 "@id": "http://schema.org/image", 39 "@type": "@id" 40 }, 41 "geo": "http://schema.org/geo", 42 "latitude": { 43 "@id": "http://schema.org/latitude", 44 "@type": "xsd:float" 45 }, 46 "longitude": { 47 "@id": "http://schema.org/longitude", 48 "@type": "xsd:float" 49 }, 50 "xsd": "http://www.w3.org/2001/XMLSchema#" 51 }, 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", 55 "geo": { 56 "latitude": "40.75", 57 "longitude": "73.98" 58 } 59 } 60 </textarea></div> 61 62 <script> 63 var editor = CodeMirror.fromTextArea(document.getElementById("code"), { 64 matchBrackets: true, 65 autoCloseBrackets: true, 66 mode: "application/ld+json", 67 lineWrapping: true 68 }); 69 </script> 70 71 <p>This is a specialization of the <a href="index.html">JavaScript mode</a>.</p> 72 </article>
Download modules/editor/codemirror/mode/javascript/json-ld.html
History Sun, 17 Dec 2017 01:14:09 +0100 Jan Dankert Integration eines weiteren Code-Editors: Codemirror. Demnächst müssen wir hier mal aufräumen und andere Editoren rauswerfen.