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