all repos — NoPaste @ 29b774f090102303e43cf939b38ac2083e62d9f1

Resurrected - The PussTheCat.org fork of NoPaste

scripts/CodeMirror/mode/dtd/index.html (view raw)

 1<!doctype html>
 2
 3<title>CodeMirror: DTD mode</title>
 4<meta charset="utf-8"/>
 5<link rel=stylesheet href="../../doc/docs.css">
 6
 7<link rel="stylesheet" href="../../lib/codemirror.css">
 8<script src="../../lib/codemirror.js"></script>
 9<script src="dtd.js"></script>
10<style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
11<div id=nav>
12  <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a>
13
14  <ul>
15    <li><a href="../../index.html">Home</a>
16    <li><a href="../../doc/manual.html">Manual</a>
17    <li><a href="https://github.com/codemirror/codemirror">Code</a>
18  </ul>
19  <ul>
20    <li><a href="../index.html">Language modes</a>
21    <li><a class=active href="#">DTD</a>
22  </ul>
23</div>
24
25<article>
26<h2>DTD mode</h2>
27<form><textarea id="code" name="code"><?xml version="1.0" encoding="UTF-8"?>
28
29<!ATTLIST title
30  xmlns	CDATA	#FIXED	"http://docbook.org/ns/docbook"
31  role	CDATA	#IMPLIED
32  %db.common.attributes;
33  %db.common.linking.attributes;
34>
35
36<!--
37  Try: http://docbook.org/xml/5.0/dtd/docbook.dtd
38-->
39
40<!DOCTYPE xsl:stylesheet
41  [
42    <!ENTITY nbsp   "&amp;#160;">
43    <!ENTITY copy   "&amp;#169;">
44    <!ENTITY reg    "&amp;#174;">
45    <!ENTITY trade  "&amp;#8482;">
46    <!ENTITY mdash  "&amp;#8212;">
47    <!ENTITY ldquo  "&amp;#8220;">
48    <!ENTITY rdquo  "&amp;#8221;">
49    <!ENTITY pound  "&amp;#163;">
50    <!ENTITY yen    "&amp;#165;">
51    <!ENTITY euro   "&amp;#8364;">
52    <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
53  ]
54>
55
56<!ELEMENT title (#PCDATA|inlinemediaobject|remark|superscript|subscript|xref|link|olink|anchor|biblioref|alt|annotation|indexterm|abbrev|acronym|date|emphasis|footnote|footnoteref|foreignphrase|phrase|quote|wordasword|firstterm|glossterm|coref|trademark|productnumber|productname|database|application|hardware|citation|citerefentry|citetitle|citebiblioid|author|person|personname|org|orgname|editor|jobtitle|replaceable|package|parameter|termdef|nonterminal|systemitem|option|optional|property|inlineequation|tag|markup|token|symbol|literal|code|constant|email|uri|guiicon|guibutton|guimenuitem|guimenu|guisubmenu|guilabel|menuchoice|mousebutton|keycombo|keycap|keycode|keysym|shortcut|accel|prompt|envar|filename|command|computeroutput|userinput|function|varname|returnvalue|type|classname|exceptionname|interfacename|methodname|modifier|initializer|ooclass|ooexception|oointerface|errorcode|errortext|errorname|errortype)*>
57
58<!ENTITY % db.common.attributes "
59  xml:id	ID	#IMPLIED
60  version	CDATA	#IMPLIED
61  xml:lang	CDATA	#IMPLIED
62  xml:base	CDATA	#IMPLIED
63  remap	CDATA	#IMPLIED
64  xreflabel	CDATA	#IMPLIED
65  revisionflag	(changed|added|deleted|off)	#IMPLIED
66  dir	(ltr|rtl|lro|rlo)	#IMPLIED
67  arch	CDATA	#IMPLIED
68  audience	CDATA	#IMPLIED
69  condition	CDATA	#IMPLIED
70  conformance	CDATA	#IMPLIED
71  os	CDATA	#IMPLIED
72  revision	CDATA	#IMPLIED
73  security	CDATA	#IMPLIED
74  userlevel	CDATA	#IMPLIED
75  vendor	CDATA	#IMPLIED
76  wordsize	CDATA	#IMPLIED
77  annotations	CDATA	#IMPLIED
78
79"></textarea></form>
80    <script>
81      var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
82        mode: {name: "dtd", alignCDATA: true},
83        lineNumbers: true,
84        lineWrapping: true
85      });
86    </script>
87
88    <p><strong>MIME types defined:</strong> <code>application/xml-dtd</code>.</p>
89  </article>