5e56e5755ca0d7521d0bb589333f45330c86c38f
[myslice.git] / third-party / codemirror-3.15 / mode / turtle / index.html
1 <!doctype html>
2 <html>
3   <head>
4     <meta charset="utf-8">
5     <title>CodeMirror: Turtle mode</title>
6     <link rel="stylesheet" href="../../lib/codemirror.css">
7     <script src="../../lib/codemirror.js"></script>
8     <script src="turtle.js"></script>
9     <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
10     <link rel="stylesheet" href="../../doc/docs.css">
11   </head>
12   <body>
13     <h1>CodeMirror: Turtle mode</h1>
14     <form><textarea id="code" name="code">
15 @prefix foaf: <http://xmlns.com/foaf/0.1/> .
16 @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
17 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
18
19 <http://purl.org/net/bsletten> 
20     a foaf:Person;
21     foaf:interest <http://www.w3.org/2000/01/sw/>;
22     foaf:based_near [
23         geo:lat "34.0736111" ;
24         geo:lon "-118.3994444"
25    ]
26
27 </textarea></form>
28     <script>
29       var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
30         mode: "text/turtle",
31         tabMode: "indent",
32         matchBrackets: true
33       });
34     </script>
35
36     <p><strong>MIME types defined:</strong> <code>text/turtle</code>.</p>
37
38   </body>
39 </html>