index.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!doctype html>
  2. <title>CodeMirror: NTriples 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="ntriples.js"></script>
  8. <style type="text/css">
  9. .CodeMirror {
  10. border: 1px solid #eee;
  11. }
  12. </style>
  13. <div id=nav>
  14. <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  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="#">NTriples</a>
  23. </ul>
  24. </div>
  25. <article>
  26. <h2>NTriples mode</h2>
  27. <form>
  28. <textarea id="ntriples" name="ntriples">
  29. <http://Sub1> <http://pred1> <http://obj> .
  30. <http://Sub2> <http://pred2#an2> "literal 1" .
  31. <http://Sub3#an3> <http://pred3> _:bnode3 .
  32. _:bnode4 <http://pred4> "literal 2"@lang .
  33. _:bnode5 <http://pred5> "literal 3"^^<http://type> .
  34. </textarea>
  35. </form>
  36. <script>
  37. var editor = CodeMirror.fromTextArea(document.getElementById("ntriples"), {});
  38. </script>
  39. <p><strong>MIME types defined:</strong> <code>text/n-triples</code>.</p>
  40. </article>