本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3KB

  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>.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>
上海开阖软件有限公司 沪ICP备12045867号-1