kitchen-sink.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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 1.2.8
  10. commit 9200b313b9923abc28c40cf597571106328de4a0
  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="https://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="navigate_within_soft_tab">Navigate within soft tabs</label>
  181. </td><td>
  182. <input type="checkbox" id="navigate_within_soft_tab">
  183. </td>
  184. </tr>
  185. <tr>
  186. <td >
  187. <label for="highlight_selected_word">Highlight selected word</label>
  188. </td>
  189. <td>
  190. <input type="checkbox" id="highlight_selected_word" checked>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td >
  195. <label for="enable_behaviours">Enable Behaviours</label>
  196. </td>
  197. <td>
  198. <input type="checkbox" id="enable_behaviours">
  199. </td>
  200. </tr>
  201. <tr>
  202. <td >
  203. <label for="fade_fold_widgets">Fade Fold Widgets</label>
  204. </td>
  205. <td>
  206. <input type="checkbox" id="fade_fold_widgets">
  207. </td>
  208. </tr>
  209. <tr>
  210. <td >
  211. <label for="elastic_tabstops">Enable Elastic Tabstops</label>
  212. </td>
  213. <td>
  214. <input type="checkbox" id="elastic_tabstops">
  215. </td>
  216. </tr>
  217. <tr>
  218. <td >
  219. <label for="isearch">Incremental Search</label>
  220. </td>
  221. <td>
  222. <input type="checkbox" id="isearch">
  223. </td>
  224. </tr>
  225. <tr>
  226. <td >
  227. <label for="highlight_token">Show token info</label>
  228. </td>
  229. <td>
  230. <input type="checkbox" id="highlight_token">
  231. </td>
  232. </tr>
  233. <tr>
  234. <td >
  235. <label for="read_only">Read-only</label>
  236. </td>
  237. <td>
  238. <input type="checkbox" id="read_only">
  239. </td>
  240. </tr>
  241. <tr>
  242. <td >
  243. <label for="scrollPastEnd">Scroll Past End</label>
  244. </td>
  245. <td>
  246. <input type="checkbox" id="scrollPastEnd" checked>
  247. </td>
  248. </tr>
  249. <tr>
  250. <td colspan="2">
  251. <input type="button" value="Edit Snippets" onclick="env.editSnippets()">
  252. </td>
  253. </tr>
  254. <tr>
  255. <td colspan="2">
  256. <input type="button" value="Add Textarea" onclick="this.parentNode.replaceChild(
  257. document.createElement('textarea'), this
  258. )">
  259. </td>
  260. </tr>
  261. </table>
  262. </td></tr>
  263. </table>
  264. <a href="https://ace.c9.io">
  265. <img id="ace-logo" src="demo/kitchen-sink/ace-logo.png" style="width: 134px;margin: 46px 0px 4px 66px;">
  266. </a>
  267. <div><a target="_test" href="./lib/ace/test/tests.html"
  268. style="color: whitesmoke; text-align: left; padding: 1em;">tests</a>
  269. </div>
  270. </div>
  271. </div>
  272. </div>
  273. <div id="editor-container"></div>
  274. <script src="src/ace.js" data-ace-base="src" type="text/javascript" charset="utf-8"></script>
  275. <script src="src/keybinding-vim.js"></script>
  276. <script src="src/keybinding-emacs.js"></script>
  277. <script src="demo/kitchen-sink/demo.js"></script>
  278. <script type="text/javascript" charset="utf-8">
  279. require("kitchen-sink/demo");
  280. </script>
  281. </body>
  282. </html>