index.html 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CodeMirror: NTriples mode</title>
  6. <link rel="stylesheet" href="../../lib/codemirror.css">
  7. <script src="../../lib/codemirror.js"></script>
  8. <script src="ntriples.js"></script>
  9. <link rel="stylesheet" href="../../doc/docs.css">
  10. <style type="text/css">
  11. .CodeMirror {
  12. border: 1px solid #eee;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <h1>CodeMirror: NTriples mode</h1>
  18. <form>
  19. <textarea id="ntriples" name="ntriples">
  20. <http://Sub1> <http://pred1> <http://obj> .
  21. <http://Sub2> <http://pred2#an2> "literal 1" .
  22. <http://Sub3#an3> <http://pred3> _:bnode3 .
  23. _:bnode4 <http://pred4> "literal 2"@lang .
  24. _:bnode5 <http://pred5> "literal 3"^^<http://type> .
  25. </textarea>
  26. </form>
  27. <script>
  28. var editor = CodeMirror.fromTextArea(document.getElementById("ntriples"), {});
  29. </script>
  30. <p><strong>MIME types defined:</strong> <code>text/n-triples</code>.</p>
  31. </body>
  32. </html>