1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-05 05:25:27 +02:00

CodeMirror dependency upgraded to v5.32.0

For handling Markdown and Code section types
This commit is contained in:
Harvey Kandola 2017-12-18 13:10:51 +00:00
parent 3337db6b27
commit 0336f84a83
351 changed files with 3408 additions and 1945 deletions

33
gui/public/codemirror/mode/ntriples/index.html vendored Executable file → Normal file
View file

@ -1,6 +1,6 @@
<!doctype html>
<title>CodeMirror: NTriples mode</title>
<title>CodeMirror: N-Triples mode</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">
@ -10,6 +10,7 @@
<style type="text/css">
.CodeMirror {
border: 1px solid #eee;
height: auto;
}
</style>
<div id=nav>
@ -22,12 +23,15 @@
</ul>
<ul>
<li><a href="../index.html">Language modes</a>
<li><a class=active href="#">NTriples</a>
<li><a class=active href="#">N-Triples/N-Quads</a>
</ul>
</div>
<article>
<h2>NTriples mode</h2>
<h2><a href="https://www.w3.org/TR/n-triples/">N-Triples</a> mode</h2>
<p>The N-Triples mode also works well with on
<a href="https://www.w3.org/TR/n-quads/">N-Quad</a> documents.
</p>
<form>
<textarea id="ntriples" name="ntriples">
<http://Sub1> <http://pred1> <http://obj> .
@ -41,5 +45,26 @@ _:bnode5 <http://pred5> "literal 3"^^<http://type> .
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("ntriples"), {});
</script>
<p><strong>MIME types defined:</strong> <code>text/n-triples</code>.</p>
<p><strong>MIME types defined:</strong> <code>application/n-triples</code>.</p>
<hr />
<p><a href="https://www.w3.org/TR/n-quads/">N-Quads</a> add a fourth
element to the statement to track which graph the statement is from.
Otherwise, it's identical to N-Triples.</p>
<form>
<textarea id="nquads" name="nquads">
<http://Sub1> <http://pred1> <http://obj> <http://graph3> .
<http://Sub2> <http://pred2#an2> "literal 1" <http://graph2> .
<http://Sub3#an3> <http://pred3> _:bnode3 <http://graph2> .
_:bnode4 <http://pred4> "literal 2"@lang <http://graph2> .
# if a graph labe
_:bnode5 <http://pred5> "literal 3"^^<http://type> .
</textarea>
</form>
<script>
var nquads_editor = CodeMirror.fromTextArea(document.getElementById("nquads"), {});
</script>
<p><strong>MIME types defined:</strong> <code>application/n-quads</code>.</p>
</article>