index.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!doctype html>
  2. <title>CodeMirror: mbox 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="mbox.js"></script>
  8. <style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>
  9. <div id=nav>
  10. <a href="https://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="#">mbox</a>
  19. </ul>
  20. </div>
  21. <article>
  22. <h2>mbox mode</h2>
  23. <form><textarea id="code" name="code">
  24. From timothygu99@gmail.com Sun Apr 17 01:40:43 2016
  25. From: Timothy Gu &lt;timothygu99@gmail.com&gt;
  26. Date: Sat, 16 Apr 2016 18:40:43 -0700
  27. Subject: mbox mode
  28. Message-ID: &lt;Z8d+bTT50U/az94FZnyPkDjZmW0=@gmail.com&gt;
  29. mbox mode is working!
  30. Timothy
  31. </textarea></form>
  32. <script>
  33. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
  34. </script>
  35. <p><strong>MIME types defined:</strong> <code>application/mbox</code>.</p>
  36. </article>