index.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <meta name="viewport" content="width=device-width" />
  6. <title>Monaco Editor</title>
  7. <link data-inline="yes-please" href="./lib/bootstrap-cosmo.css" rel="stylesheet" />
  8. <link data-inline="yes-please" href="./lib/bootstrap-responsive.min.css" rel="stylesheet" />
  9. <link data-inline="yes-please" href="./all.css" rel="stylesheet" />
  10. <link data-inline="yes-please" href="./index/index.css" rel="stylesheet" />
  11. <link
  12. data-name="vs/editor/editor.main"
  13. rel="stylesheet"
  14. href="../release/dev/vs/editor/editor.main.css"
  15. />
  16. </head>
  17. <body>
  18. <pre data-preload="index/samples/sample.typescript.txt"></pre>
  19. <pre data-preload="index/samples/diff.lhs.txt"></pre>
  20. <pre data-preload="index/samples/diff.rhs.txt"></pre>
  21. <a id="gh-link" href="https://github.com/microsoft/monaco-editor"
  22. ><img width="149" height="149" alt="Fork me on GitHub" src="./fork.png"
  23. /></a>
  24. <nav class="navbar navbar-inverse navbar-fixed-top">
  25. <div class="navbar-inner">
  26. <div class="container">
  27. <div class="logo">
  28. <a href="index.html">Monaco Editor</a>
  29. </div>
  30. <!-- collapse button for smaller screens -->
  31. <button
  32. type="button"
  33. class="btn btn-navbar"
  34. data-toggle="collapse"
  35. data-target=".nav-collapse"
  36. >
  37. <span class="icon-bar"></span>
  38. <span class="icon-bar"></span>
  39. <span class="icon-bar"></span>
  40. </button>
  41. <!-- navbar title -->
  42. <div class="nav-collapse collapse">
  43. <ul class="nav">
  44. <li><a class="nav-item" href="index.html">Home</a></li>
  45. <li><a class="nav-item" href="api/index.html">API Doc</a></li>
  46. <li><a class="nav-item" href="playground.html">Playground</a></li>
  47. <li><a class="nav-item" href="monarch.html">Monarch</a></li>
  48. <li>
  49. <a
  50. class="nav-item"
  51. target="_blank"
  52. href="https://registry.npmjs.org/monaco-editor/-/monaco-editor-{{version}}.tgz"
  53. >Download {{version}}</a
  54. >
  55. </li>
  56. </ul>
  57. </div>
  58. </div>
  59. </div>
  60. </nav>
  61. <section class="try">
  62. <div class="container">
  63. <h3>About</h3>
  64. <div class="row">
  65. <div class="span12">
  66. <br />
  67. <p>
  68. The Monaco Editor is the code editor that powers
  69. <a href="https://github.com/microsoft/vscode">VS Code</a>. A good page describing the
  70. code editor's features is
  71. <a href="https://code.visualstudio.com/docs/editor/editingevolved">here</a>.
  72. </p>
  73. <p>
  74. It is licensed under the MIT License and supports Edge, Chrome, Firefox, Safari and
  75. Opera.
  76. </p>
  77. <p>
  78. The Monaco editor is
  79. <span style="font-weight: bold; color: #ff5722">not</span>
  80. supported in mobile browsers or mobile web frameworks.
  81. </p>
  82. <p>
  83. Find more information at the
  84. <a href="https://github.com/microsoft/monaco-editor">Monaco Editor repo</a>.
  85. </p>
  86. </div>
  87. </div>
  88. <hr />
  89. <h3>Download v{{version}}</h3>
  90. <div class="row">
  91. <div class="span12">
  92. <br />
  93. <p>The latest released version is <strong>{{version}}</strong>.</p>
  94. <p>
  95. Download with this direct
  96. <a
  97. target="_blank"
  98. href="https://registry.npmjs.org/monaco-editor/-/monaco-editor-{{version}}.tgz"
  99. >download link</a
  100. >
  101. or
  102. <a href="https://www.npmjs.com/package/monaco-editor">from npm</a>:
  103. </p>
  104. <pre style="color: black">npm install monaco-editor@{{version}}</pre>
  105. </div>
  106. </div>
  107. <hr />
  108. <h3>Editor</h3>
  109. <div class="editor row">
  110. <div class="span3">
  111. <h4
  112. title="Syntax colorization plus support for errors, warnings, IntelliSense, formatting and outlining"
  113. >
  114. Rich IntelliSense, Validation
  115. </h4>
  116. <p>TypeScript, JavaScript, CSS, LESS, SCSS, JSON, HTML</p>
  117. <br />
  118. <h4 title="Syntax colorization">Basic Syntax Colorization</h4>
  119. <p>
  120. XML, PHP, C#, C++, Razor, Markdown, Diff, Java, VB, CoffeeScript, Handlebars, Batch,
  121. Pug, F#, Lua, Powershell, Python, Ruby, SASS, R, Objective-C
  122. </p>
  123. <br />
  124. <p>
  125. Colorizers are implemented using
  126. <a href="monarch.html" target="_blank">Monarch</a>.
  127. </p>
  128. </div>
  129. <div class="span9">
  130. <div class="row">
  131. <div class="span4">
  132. <label class="control-label">Language</label>
  133. <select class="language-picker"></select>
  134. </div>
  135. <div class="span4">
  136. <label class="control-label">Theme</label>
  137. <select class="theme-picker">
  138. <option>Visual Studio</option>
  139. <option>Visual Studio Dark</option>
  140. <option>High Contrast Dark</option>
  141. </select>
  142. </div>
  143. </div>
  144. <div class="editor-frame">
  145. <div class="loading editor" style="display: none">
  146. <div class="progress progress-striped active">
  147. <div class="bar"></div>
  148. </div>
  149. </div>
  150. <div id="editor"></div>
  151. </div>
  152. </div>
  153. </div>
  154. <hr />
  155. <h3>Diff Editor</h3>
  156. <div class="editor row">
  157. <div class="span3">
  158. <h4 title="As you type diffing for all supported languages">
  159. Side by side live comparison
  160. </h4>
  161. <p>Supports all languages out of the box</p>
  162. </div>
  163. <div class="span9">
  164. <div class="row">
  165. <div class="span8">
  166. <div class="checkbox">
  167. <label class="control-label">
  168. <input id="inline-diff-checkbox" type="checkbox" value="" />
  169. Inline diff
  170. </label>
  171. </div>
  172. </div>
  173. </div>
  174. <div class="editor-frame">
  175. <div class="loading diff-editor" style="display: none">
  176. <div class="progress progress-striped active">
  177. <div class="bar"></div>
  178. </div>
  179. </div>
  180. <div id="diff-editor"></div>
  181. </div>
  182. </div>
  183. </div>
  184. </div>
  185. </section>
  186. <footer class="container">
  187. <hr />
  188. <p class="text-center">
  189. <a href="https://microsoft.com" title="Microsoft">
  190. <img
  191. src="https://opensource.microsoft.com/assets/images/Microsoft_logo.svg"
  192. alt="Microsoft"
  193. style="max-height: 23px; margin-bottom: 12px"
  194. />
  195. </a>
  196. <br />
  197. <small>&copy; {{year}} Microsoft</small>
  198. </p>
  199. </footer>
  200. <script
  201. src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"
  202. integrity="sha256-wS9gmOZBqsqWxgIVgA8Y9WcQOa7PgSIX+rPA0VL2rbQ="
  203. crossorigin="anonymous"
  204. ></script>
  205. <script
  206. src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.0/bootstrap.min.js"
  207. integrity="sha256-u+l2mGjpmGK/mFgUncmMcFKdMijvV+J3odlDJZSNUu8="
  208. crossorigin="anonymous"
  209. ></script>
  210. <script>
  211. var require = { paths: { vs: '../release/dev/vs' } };
  212. </script>
  213. <script src="../release/dev/vs/loader.js"></script>
  214. <script src="../release/dev/vs/editor/editor.main.nls.js"></script>
  215. <script src="../release/dev/vs/editor/editor.main.js"></script>
  216. <script data-inline="yes-please" src="./index/index.js"></script>
  217. </body>
  218. </html>