本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.5KB

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