2
0

index.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. <http://purl.org/net/bsletten>
  19. a foaf:Person;
  20. foaf:interest <http://www.w3.org/2000/01/sw/>;
  21. foaf:based_near [
  22. geo:lat "34.0736111" ;
  23. geo:lon "-118.3994444"
  24. ]
  25. </textarea></form>
  26. <script>
  27. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  28. mode: "text/turtle",
  29. tabMode: "indent",
  30. matchBrackets: true
  31. });
  32. </script>
  33. <p><strong>MIME types defined:</strong> <code>text/turtle</code>.</p>
  34. </body>
  35. </html>