index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!doctype html>
  2. <title>CodeMirror: ASCII Armor (PGP) 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="asciiarmor.js"></script>
  8. <style>.CodeMirror {background: #f8f8f8;}</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="#">ASCII Armor</a>
  19. </ul>
  20. </div>
  21. <article>
  22. <h2>ASCII Armor (PGP) mode</h2>
  23. <form><textarea id="code" name="code">
  24. -----BEGIN PGP MESSAGE-----
  25. Version: OpenPrivacy 0.99
  26. yDgBO22WxBHv7O8X7O/jygAEzol56iUKiXmV+XmpCtmpqQUKiQrFqclFqUDBovzS
  27. vBSFjNSiVHsuAA==
  28. =njUN
  29. -----END PGP MESSAGE-----
  30. </textarea></form>
  31. <script>
  32. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  33. lineNumbers: true
  34. });
  35. </script>
  36. <p><strong>MIME types
  37. defined:</strong> <code>application/pgp</code>, <code>application/pgp-keys</code>, <code>application/pgp-signature</code></p>
  38. </article>