kitchen-sink.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>Ace Kitchen Sink</title>
  6. <meta name="author" content="Fabian Jakobs">
  7. <!--
  8. Ace
  9. version %version%
  10. commit %commit%
  11. -->
  12. <link rel="stylesheet" href="demo/kitchen-sink/styles.css" type="text/css" media="screen" charset="utf-8">
  13. <script async="true" src="https://use.edgefonts.net/source-code-pro.js"></script>
  14. <link href="./doc/site/images/favicon.ico" rel="icon" type="image/x-icon">
  15. </head>
  16. <body>
  17. <div id="optionsPanel" style="position:absolute;height:100%;width:260px">
  18. <a href="http://c9.io" title="Cloud9 IDE | Your code anywhere, anytime">
  19. <img id="c9-logo" src="demo/kitchen-sink/logo.png" style="width: 172px;margin: -9px 30px -12px 51px;">
  20. </a>
  21. <div style="position: absolute; overflow: hidden; top:100px; bottom:0">
  22. <div style="width: 120%; height:100%; overflow-y: scroll">
  23. <table id="controls">
  24. <tr>
  25. <td>
  26. <label for="doc">Document</label>
  27. </td><td>
  28. <select id="doc" size="1">
  29. </select>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td >
  34. <label for="mode">Mode</label>
  35. </td><td>
  36. <select id="mode" size="1">
  37. </select>
  38. </td>
  39. </tr>
  40. <tr>
  41. <td>
  42. <label for="split">Split</label>
  43. </td><td>
  44. <select id="split" size="1">
  45. <option value="none">None</option>
  46. <option value="below">Below</option>
  47. <option value="beside">Beside</option>
  48. </select>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td >
  53. <label for="theme">Theme</label>
  54. </td><td>
  55. <select id="theme" size="1">
  56. </select>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td>
  61. <label for="fontsize">Font Size</label>
  62. </td><td>
  63. <select id="fontsize" size="1">
  64. <option value="10px">10px</option>
  65. <option value="11px">11px</option>
  66. <option value="12px" selected="selected">12px</option>
  67. <option value="13px">13px</option>
  68. <option value="14px">14px</option>
  69. <option value="16px">16px</option>
  70. <option value="18px">18px</option>
  71. <option value="20px">20px</option>
  72. <option value="24px">24px</option>
  73. </select>
  74. </td>
  75. </tr>
  76. <tr>
  77. <td>
  78. <label for="folding">Code Folding</label>
  79. </td><td>
  80. <select id="folding" size="1">
  81. <option value="manual">manual</option>
  82. <option value="markbegin" selected="selected">mark begin</option>
  83. <option value="markbeginend">mark begin and end</option>
  84. </select>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td >
  89. <label for="keybinding">Key Binding</label>
  90. </td><td>
  91. <select id="keybinding" size="1">
  92. <option value="ace">Ace</option>
  93. <option value="vim">Vim</option>
  94. <option value="emacs">Emacs</option>
  95. <option value="custom">Custom</option>
  96. </select>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td >
  101. <label for="soft_wrap">Soft Wrap</label>
  102. </td><td>
  103. <select id="soft_wrap" size="1">
  104. <option value="off">Off</option>
  105. <option value="40">40 Chars</option>
  106. <option value="80">80 Chars</option>
  107. <option value="free">Free</option>
  108. </select>
  109. </td>
  110. </tr>
  111. <tr><td colspan="2">
  112. <table id="more-controls">
  113. <tr>
  114. <td>
  115. <label for="select_style">Full Line Selection</label>
  116. </td><td>
  117. <input type="checkbox" name="select_style" id="select_style" checked>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td>
  122. <label for="highlight_active">Highlight Active Line</label>
  123. </td><td>
  124. <input type="checkbox" name="highlight_active" id="highlight_active" checked>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td >
  129. <label for="show_hidden">Show Invisibles</label>
  130. </td><td>
  131. <input type="checkbox" name="show_hidden" id="show_hidden" checked>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td >
  136. <label for="display_indent_guides">Show Indent Guides</label>
  137. </td><td>
  138. <input type="checkbox" name="display_indent_guides" id="display_indent_guides" checked>
  139. </td>
  140. </tr>
  141. <tr>
  142. <td >
  143. <label for="show_hscroll">Persistent HScroll</label>
  144. </td><td>
  145. <input type="checkbox" name="show_hscroll" id="show_hscroll">
  146. <label for="show_hscroll">VScroll</label>
  147. <input type="checkbox" name="show_vscroll" id="show_vscroll">
  148. </td>
  149. </tr>
  150. <tr>
  151. <td >
  152. <label for="animate_scroll">Animate scrolling</label>
  153. </td><td>
  154. <input type="checkbox" name="animate_scroll" id="animate_scroll">
  155. </td>
  156. </tr>
  157. <tr>
  158. <td >
  159. <label for="show_gutter">Show Gutter</label>
  160. </td><td>
  161. <input type="checkbox" id="show_gutter" checked>
  162. </td>
  163. </tr>
  164. <tr>
  165. <td >
  166. <label for="show_print_margin">Show Print Margin</label>
  167. </td><td>
  168. <input type="checkbox" id="show_print_margin" checked>
  169. </td>
  170. </tr>
  171. <tr>
  172. <td >
  173. <label for="soft_tab">Use Soft Tab</label>
  174. </td><td>
  175. <input type="checkbox" id="soft_tab" checked>
  176. </td>
  177. </tr>
  178. <tr>
  179. <td >
  180. <label for="highlight_selected_word">Highlight selected word</label>
  181. </td>
  182. <td>
  183. <input type="checkbox" id="highlight_selected_word" checked>
  184. </td>
  185. </tr>
  186. <tr>
  187. <td >
  188. <label for="enable_behaviours">Enable Behaviours</label>
  189. </td>
  190. <td>
  191. <input type="checkbox" id="enable_behaviours">
  192. </td>
  193. </tr>
  194. <tr>
  195. <td >
  196. <label for="fade_fold_widgets">Fade Fold Widgets</label>
  197. </td>
  198. <td>
  199. <input type="checkbox" id="fade_fold_widgets">
  200. </td>
  201. </tr>
  202. <tr>
  203. <td >
  204. <label for="elastic_tabstops">Enable Elastic Tabstops</label>
  205. </td>
  206. <td>
  207. <input type="checkbox" id="elastic_tabstops">
  208. </td>
  209. </tr>
  210. <tr>
  211. <td >
  212. <label for="isearch">Incremental Search</label>
  213. </td>
  214. <td>
  215. <input type="checkbox" id="isearch">
  216. </td>
  217. </tr>
  218. <tr>
  219. <td >
  220. <label for="highlight_token">Show token info</label>
  221. </td>
  222. <td>
  223. <input type="checkbox" id="highlight_token">
  224. </td>
  225. </tr>
  226. <tr>
  227. <td >
  228. <label for="read_only">Read-only</label>
  229. </td>
  230. <td>
  231. <input type="checkbox" id="read_only">
  232. </td>
  233. </tr>
  234. <tr>
  235. <td >
  236. <label for="scrollPastEnd">Scroll Past End</label>
  237. </td>
  238. <td>
  239. <input type="checkbox" id="scrollPastEnd" checked>
  240. </td>
  241. </tr>
  242. <tr>
  243. <td colspan="2">
  244. <input type="button" value="Edit Snippets" onclick="env.editSnippets()">
  245. </td>
  246. </tr>
  247. </table>
  248. </td></tr>
  249. </table>
  250. <a href="http://ace.c9.io">
  251. <img id="ace-logo" src="doc/site/images/ace-logo.png" style="width: 134px;margin: 46px 0px 4px 66px;">
  252. </a>
  253. <div><a target="_test" href="./lib/ace/test/tests.html"
  254. style="color: whitesmoke; text-align: left; padding: 1em;">tests</a>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. <div id="editor-container"></div>
  260. <!--DEVEL-->
  261. <script type="text/javascript">
  262. var require = {
  263. baseUrl: window.location.protocol + "//" + window.location.host + window.location.pathname.split("/").slice(0, -1).join("/"),
  264. paths: {
  265. ace: "lib/ace"
  266. },
  267. waitSeconds: 30
  268. };
  269. </script>
  270. <script src="demo/kitchen-sink/require.js" data-main="demo/kitchen-sink/demo" type="text/javascript"></script>
  271. <!--DEVEL-->
  272. <!--PACKAGE
  273. <script src="src/ace.js" data-ace-base="src" type="text/javascript" charset="utf-8"></script>
  274. <script src="src/keybinding-vim.js"></script>
  275. <script src="src/keybinding-emacs.js"></script>
  276. <script src="demo/kitchen-sink/demo.js"></script>
  277. <script type="text/javascript" charset="utf-8">
  278. require("kitchen-sink/demo");
  279. </script>
  280. PACKAGE-->
  281. </body>
  282. </html>