File modules/editor/codemirror/mode/turtle/index.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: Turtle 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="turtle.js"></script> 10 <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> 11 <div id=nav> 12 <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> 13 14 <ul> 15 <li><a href="../../index.html">Home</a> 16 <li><a href="../../doc/manual.html">Manual</a> 17 <li><a href="https://github.com/codemirror/codemirror">Code</a> 18 </ul> 19 <ul> 20 <li><a href="../index.html">Language modes</a> 21 <li><a class=active href="#">Turtle</a> 22 </ul> 23 </div> 24 25 <article> 26 <h2>Turtle mode</h2> 27 <form><textarea id="code" name="code"> 28 @prefix foaf: <http://xmlns.com/foaf/0.1/> . 29 @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> . 30 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 31 32 <http://purl.org/net/bsletten> 33 a foaf:Person; 34 foaf:interest <http://www.w3.org/2000/01/sw/>; 35 foaf:based_near [ 36 geo:lat "34.0736111" ; 37 geo:lon "-118.3994444" 38 ] 39 40 </textarea></form> 41 <script> 42 var editor = CodeMirror.fromTextArea(document.getElementById("code"), { 43 mode: "text/turtle", 44 matchBrackets: true 45 }); 46 </script> 47 48 <p><strong>MIME types defined:</strong> <code>text/turtle</code>.</p> 49 50 </article>
Download modules/editor/codemirror/mode/turtle/index.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.