index.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!doctype html>
  2. <title>CodeMirror: DTD 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="dtd.js"></script>
  8. <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
  9. <div id=nav>
  10. <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  11. <ul>
  12. <li><a href="../../index.html">Home</a>
  13. <li><a href="../../doc/manual.html">Manual</a>
  14. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  15. </ul>
  16. <ul>
  17. <li><a href="../index.html">Language modes</a>
  18. <li><a class=active href="#">DTD</a>
  19. </ul>
  20. </div>
  21. <article>
  22. <h2>DTD mode</h2>
  23. <form><textarea id="code" name="code"><?xml version="1.0" encoding="UTF-8"?>
  24. <!ATTLIST title
  25. xmlns CDATA #FIXED "http://docbook.org/ns/docbook"
  26. role CDATA #IMPLIED
  27. %db.common.attributes;
  28. %db.common.linking.attributes;
  29. >
  30. <!--
  31. Try: http://docbook.org/xml/5.0/dtd/docbook.dtd
  32. -->
  33. <!DOCTYPE xsl:stylesheet
  34. [
  35. <!ENTITY nbsp "&amp;#160;">
  36. <!ENTITY copy "&amp;#169;">
  37. <!ENTITY reg "&amp;#174;">
  38. <!ENTITY trade "&amp;#8482;">
  39. <!ENTITY mdash "&amp;#8212;">
  40. <!ENTITY ldquo "&amp;#8220;">
  41. <!ENTITY rdquo "&amp;#8221;">
  42. <!ENTITY pound "&amp;#163;">
  43. <!ENTITY yen "&amp;#165;">
  44. <!ENTITY euro "&amp;#8364;">
  45. <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
  46. ]
  47. >
  48. <!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)*>
  49. <!ENTITY % db.common.attributes "
  50. xml:id ID #IMPLIED
  51. version CDATA #IMPLIED
  52. xml:lang CDATA #IMPLIED
  53. xml:base CDATA #IMPLIED
  54. remap CDATA #IMPLIED
  55. xreflabel CDATA #IMPLIED
  56. revisionflag (changed|added|deleted|off) #IMPLIED
  57. dir (ltr|rtl|lro|rlo) #IMPLIED
  58. arch CDATA #IMPLIED
  59. audience CDATA #IMPLIED
  60. condition CDATA #IMPLIED
  61. conformance CDATA #IMPLIED
  62. os CDATA #IMPLIED
  63. revision CDATA #IMPLIED
  64. security CDATA #IMPLIED
  65. userlevel CDATA #IMPLIED
  66. vendor CDATA #IMPLIED
  67. wordsize CDATA #IMPLIED
  68. annotations CDATA #IMPLIED
  69. "></textarea></form>
  70. <script>
  71. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  72. mode: {name: "dtd", alignCDATA: true},
  73. lineNumbers: true,
  74. lineWrapping: true
  75. });
  76. </script>
  77. <p><strong>MIME types defined:</strong> <code>application/xml-dtd</code>.</p>
  78. </article>