Licitator 1.0
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.

198 lines
8.9 KiB

5 years ago
  1. <!doctype html>
  2. <title>CodeMirror</title>
  3. <meta charset="utf-8"/>
  4. <link rel=stylesheet href="lib/codemirror.css">
  5. <link rel=stylesheet href="doc/docs.css">
  6. <script src="lib/codemirror.js"></script>
  7. <script src="mode/xml/xml.js"></script>
  8. <script src="mode/javascript/javascript.js"></script>
  9. <script src="mode/css/css.js"></script>
  10. <script src="mode/htmlmixed/htmlmixed.js"></script>
  11. <script src="addon/edit/matchbrackets.js"></script>
  12. <script src="doc/activebookmark.js"></script>
  13. <style>
  14. .CodeMirror { height: auto; border: 1px solid #ddd; }
  15. .CodeMirror-scroll { max-height: 200px; }
  16. .CodeMirror pre { padding-left: 7px; line-height: 1.25; }
  17. .banner { background: #ffc; padding: 6px; border-bottom: 2px solid silver; }
  18. .banner div { margin: 0 auto; max-width: 700px; text-align: center; }
  19. </style>
  20. <div id=nav>
  21. <a href="https://codemirror.net"><h1>CodeMirror</h1><img id=logo src="doc/logo.png"></a>
  22. <ul>
  23. <li><a class=active data-default="true" href="#description">Home</a>
  24. <li><a href="doc/manual.html">Manual</a>
  25. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  26. <li><a href="https://codemirror.net/6/">Version 6</a>
  27. </ul>
  28. <ul>
  29. <li><a href="#features">Features</a>
  30. <li><a href="#community">Community</a>
  31. <li><a href="#browsersupport">Browser support</a>
  32. </ul>
  33. </div>
  34. <article>
  35. <section id=description class=first>
  36. <p><strong>CodeMirror</strong> is a versatile text editor
  37. implemented in JavaScript for the browser. It is specialized for
  38. editing code, and comes with a number of <a href="mode/index.html">language modes</a> and <a href="doc/manual.html#addons">addons</a>
  39. that implement more advanced editing functionality.</p>
  40. <p>A rich <a href="doc/manual.html#api">programming API</a> and a
  41. CSS <a href="doc/manual.html#styling">theming</a> system are
  42. available for customizing CodeMirror to fit your application, and
  43. extending it with new functionality.</p>
  44. </section>
  45. <section id=demo>
  46. <h2>This is CodeMirror</h2>
  47. <form style="position: relative; margin-top: .5em;"><textarea id=demotext>
  48. <!-- Create a simple CodeMirror instance -->
  49. <link rel="stylesheet" href="lib/codemirror.css">
  50. <script src="lib/codemirror.js"></script>
  51. <script>
  52. var editor = CodeMirror.fromTextArea(myTextarea, {
  53. lineNumbers: true
  54. });
  55. </script></textarea>
  56. <select id="demolist" onchange="document.location = this.options[this.selectedIndex].value;">
  57. <option value="#">Other demos...</option>
  58. <option value="demo/complete.html">Autocompletion</option>
  59. <option value="demo/folding.html">Code folding</option>
  60. <option value="demo/theme.html">Themes</option>
  61. <option value="mode/htmlmixed/index.html">Mixed language modes</option>
  62. <option value="demo/bidi.html">Bi-directional text</option>
  63. <option value="demo/variableheight.html">Variable font sizes</option>
  64. <option value="demo/search.html">Search interface</option>
  65. <option value="demo/vim.html">Vim bindings</option>
  66. <option value="demo/emacs.html">Emacs bindings</option>
  67. <option value="demo/sublime.html">Sublime Text bindings</option>
  68. <option value="demo/tern.html">Tern integration</option>
  69. <option value="demo/merge.html">Merge/diff interface</option>
  70. <option value="demo/fullscreen.html">Full-screen editor</option>
  71. <option value="demo/simplescrollbars.html">Custom scrollbars</option>
  72. </select></form>
  73. <script>
  74. var editor = CodeMirror.fromTextArea(document.getElementById("demotext"), {
  75. lineNumbers: true,
  76. mode: "text/html",
  77. matchBrackets: true
  78. });
  79. </script>
  80. <div class=actions>
  81. <div class=actionspicture>
  82. <img src="doc/yinyang.png" class=yinyang>
  83. <div class="actionlink download">
  84. <a href="https://codemirror.net/codemirror.zip">DOWNLOAD</a>
  85. </div>
  86. <div class="actionlink fund">
  87. <a href="https://marijnhaverbeke.nl/fund/">FUND</a>
  88. </div>
  89. </div>
  90. <div class=actionsleft>
  91. Get the current version: <a href="https://codemirror.net/codemirror.zip">5.53.0</a>.<br>
  92. You can see the <a href="https://github.com/codemirror/codemirror" title="Github repository">code</a>,<br>
  93. read the <a href="doc/releases.html">release notes</a>,<br>
  94. or study the <a href="doc/manual.html">user manual</a>.
  95. </div>
  96. <div class=actionsright>
  97. Software needs maintenance,<br>
  98. maintainers need to subsist.<br>
  99. You can help <a href="https://marijnhaverbeke.nl/fund/" title="Set up a monthly contribution">per month</a> or
  100. <a title="Donate with PayPal" href="https://www.paypal.me/marijnhaverbeke">once</a>.
  101. </div>
  102. </div>
  103. </section>
  104. <section id=features>
  105. <h2>Features</h2>
  106. <ul>
  107. <li>Support for <a href="mode/index.html">over 100 languages</a> out of the box
  108. <li>A powerful, <a href="mode/htmlmixed/index.html">composable</a> language mode <a href="doc/manual.html#modeapi">system</a>
  109. <li><a href="doc/manual.html#addon_show-hint">Autocompletion</a> (<a href="demo/xmlcomplete.html">XML</a>)
  110. <li><a href="doc/manual.html#addon_foldcode">Code folding</a>
  111. <li><a href="doc/manual.html#option_extraKeys">Configurable</a> keybindings
  112. <li><a href="demo/vim.html">Vim</a>, <a href="demo/emacs.html">Emacs</a>, and <a href="demo/sublime.html">Sublime Text</a> bindings
  113. <li><a href="doc/manual.html#addon_search">Search and replace</a> interface
  114. <li><a href="doc/manual.html#addon_matchbrackets">Bracket</a> and <a href="doc/manual.html#addon_matchtags">tag</a> matching
  115. <li>Support for <a href="demo/buffers.html">split views</a>
  116. <li><a href="doc/manual.html#addon_lint">Linter integration</a>
  117. <li><a href="demo/variableheight.html">Mixing font sizes and styles</a>
  118. <li><a href="demo/theme.html">Various themes</a>
  119. <li>Able to <a href="demo/resize.html">resize to fit content</a>
  120. <li><a href="doc/manual.html#mark_replacedWith">Inline</a> and <a href="doc/manual.html#addLineWidget">block</a> widgets
  121. <li>Programmable <a href="demo/marker.html">gutters</a>
  122. <li>Making ranges of text <a href="doc/manual.html#markText">styled, read-only, or atomic</a>
  123. <li><a href="demo/bidi.html">Bi-directional text</a> support
  124. <li>Many other <a href="doc/manual.html#api">methods</a> and <a href="doc/manual.html#addons">addons</a>...
  125. </ul>
  126. </section>
  127. <section id=community>
  128. <h2>Community</h2>
  129. <p>CodeMirror is an open-source project shared under
  130. an <a href="LICENSE">MIT license</a>. It is the editor used in the
  131. dev tools for
  132. <a href="https://hacks.mozilla.org/2013/11/firefox-developer-tools-episode-27-edit-as-html-codemirror-more/">Firefox</a>,
  133. <a href="https://developers.google.com/chrome-developer-tools/">Chrome</a>,
  134. and <a href="https://developer.apple.com/safari/tools/">Safari</a>, in <a href="http://www.lighttable.com/">Light
  135. Table</a>, <a href="http://brackets.io/">Adobe
  136. Brackets</a>, <a href="http://blog.bitbucket.org/2013/05/14/edit-your-code-in-the-cloud-with-bitbucket/">Bitbucket</a>,
  137. and <a href="doc/realworld.html">many other projects</a>.</p>
  138. <p>Development and bug tracking happens
  139. on <a href="https://github.com/codemirror/CodeMirror/">github</a>
  140. (<a href="http://marijnhaverbeke.nl/git/codemirror">alternate git
  141. repository</a>).
  142. Please <a href="https://codemirror.net/doc/reporting.html">read these
  143. pointers</a> before submitting a bug. Use pull requests to submit
  144. patches. All contributions must be released under the same MIT
  145. license that CodeMirror uses.</p>
  146. <p>Discussion around the project is done on
  147. a <a href="https://discuss.codemirror.net">discussion forum</a>.
  148. Announcements related to the project, such as new versions, are
  149. posted in the
  150. forum's <a href="https://discuss.codemirror.net/c/announce">"announce"</a>
  151. category. If needed, you can
  152. contact <a href="mailto:marijnh@gmail.com">the maintainer</a>
  153. directly. We aim to be an inclusive, welcoming community. To make
  154. that explicit, we have
  155. a <a href="http://contributor-covenant.org/version/1/1/0/">code of
  156. conduct</a> that applies to communication around the project.</p>
  157. <p>A list of CodeMirror-related software that is not part of the
  158. main distribution is maintained
  159. on <a href="https://github.com/codemirror/CodeMirror/wiki/CodeMirror-addons">our
  160. wiki</a>. Feel free to add your project.</p>
  161. </section>
  162. <section id=browsersupport>
  163. <h2>Browser support</h2>
  164. <p>The <em>desktop</em> versions of the following browsers,
  165. in <em>standards mode</em> (HTML5 <code>&lt;!doctype html></code>
  166. recommended) are supported:</p>
  167. <table style="margin-bottom: 1em">
  168. <tr><th>Firefox</th><td>version 4 and up</td></tr>
  169. <tr><th>Chrome</th><td>any version</td></tr>
  170. <tr><th>Safari</th><td>version 5.2 and up</td></tr>
  171. <tr><th style="padding-right: 1em;">Internet Explorer/Edge</th><td>version 8 and up</td></tr>
  172. <tr><th>Opera</th><td>version 9 and up</td></tr>
  173. </table>
  174. <p>Support for modern mobile browsers is experimental. Recent
  175. versions of the iOS browser and Chrome on Android should work
  176. pretty well.</p>
  177. </section>
  178. </article>