index.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!doctype html>
  2. <title>CodeMirror: Spreadsheet 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="../../addon/edit/matchbrackets.js"></script>
  8. <script src="spreadsheet.js"></script>
  9. <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
  10. <div id=nav>
  11. <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  12. <ul>
  13. <li><a href="../../index.html">Home</a>
  14. <li><a href="../../doc/manual.html">Manual</a>
  15. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  16. </ul>
  17. <ul>
  18. <li><a href="../index.html">Language modes</a>
  19. <li><a class=active href="#">Spreadsheet</a>
  20. </ul>
  21. </div>
  22. <article>
  23. <h2>Spreadsheet mode</h2>
  24. <form><textarea id="code" name="code">=IF(A1:B2, TRUE, FALSE) / 100</textarea></form>
  25. <script>
  26. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  27. lineNumbers: true,
  28. matchBrackets: true,
  29. extraKeys: {"Tab": "indentAuto"}
  30. });
  31. </script>
  32. <p><strong>MIME types defined:</strong> <code>text/x-spreadsheet</code>.</p>
  33. <h3>The Spreadsheet Mode</h3>
  34. <p> Created by <a href="https://github.com/robertleeplummerjr">Robert Plummer</a></p>
  35. </article>