index.html 1.4 KB

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