Açıklama Yok
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.

ext-settings_menu.js 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  1. ace.define("ace/ext/menu_tools/element_generator",["require","exports","module"], function(require, exports, module) {
  2. 'use strict';
  3. module.exports.createOption = function createOption (obj) {
  4. var attribute;
  5. var el = document.createElement('option');
  6. for(attribute in obj) {
  7. if(obj.hasOwnProperty(attribute)) {
  8. if(attribute === 'selected') {
  9. el.setAttribute(attribute, obj[attribute]);
  10. } else {
  11. el[attribute] = obj[attribute];
  12. }
  13. }
  14. }
  15. return el;
  16. };
  17. module.exports.createCheckbox = function createCheckbox (id, checked, clss) {
  18. var el = document.createElement('input');
  19. el.setAttribute('type', 'checkbox');
  20. el.setAttribute('id', id);
  21. el.setAttribute('name', id);
  22. el.setAttribute('value', checked);
  23. el.setAttribute('class', clss);
  24. if(checked) {
  25. el.setAttribute('checked', 'checked');
  26. }
  27. return el;
  28. };
  29. module.exports.createInput = function createInput (id, value, clss) {
  30. var el = document.createElement('input');
  31. el.setAttribute('type', 'text');
  32. el.setAttribute('id', id);
  33. el.setAttribute('name', id);
  34. el.setAttribute('value', value);
  35. el.setAttribute('class', clss);
  36. return el;
  37. };
  38. module.exports.createLabel = function createLabel (text, labelFor) {
  39. var el = document.createElement('label');
  40. el.setAttribute('for', labelFor);
  41. el.textContent = text;
  42. return el;
  43. };
  44. module.exports.createSelection = function createSelection (id, values, clss) {
  45. var el = document.createElement('select');
  46. el.setAttribute('id', id);
  47. el.setAttribute('name', id);
  48. el.setAttribute('class', clss);
  49. values.forEach(function(item) {
  50. el.appendChild(module.exports.createOption(item));
  51. });
  52. return el;
  53. };
  54. });
  55. ace.define("ace/ext/modelist",["require","exports","module"], function(require, exports, module) {
  56. "use strict";
  57. var modes = [];
  58. function getModeForPath(path) {
  59. var mode = modesByName.text;
  60. var fileName = path.split(/[\/\\]/).pop();
  61. for (var i = 0; i < modes.length; i++) {
  62. if (modes[i].supportsFile(fileName)) {
  63. mode = modes[i];
  64. break;
  65. }
  66. }
  67. return mode;
  68. }
  69. var Mode = function(name, caption, extensions) {
  70. this.name = name;
  71. this.caption = caption;
  72. this.mode = "ace/mode/" + name;
  73. this.extensions = extensions;
  74. if (/\^/.test(extensions)) {
  75. var re = extensions.replace(/\|(\^)?/g, function(a, b){
  76. return "$|" + (b ? "^" : "^.*\\.");
  77. }) + "$";
  78. } else {
  79. var re = "^.*\\.(" + extensions + ")$";
  80. }
  81. this.extRe = new RegExp(re, "gi");
  82. };
  83. Mode.prototype.supportsFile = function(filename) {
  84. return filename.match(this.extRe);
  85. };
  86. var supportedModes = {
  87. ABAP: ["abap"],
  88. ActionScript:["as"],
  89. ADA: ["ada|adb"],
  90. Apache_Conf: ["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],
  91. AsciiDoc: ["asciidoc"],
  92. Assembly_x86:["asm"],
  93. AutoHotKey: ["ahk"],
  94. BatchFile: ["bat|cmd"],
  95. C9Search: ["c9search_results"],
  96. C_Cpp: ["cpp|c|cc|cxx|h|hh|hpp"],
  97. Cirru: ["cirru|cr"],
  98. Clojure: ["clj|cljs"],
  99. Cobol: ["CBL|COB"],
  100. coffee: ["coffee|cf|cson|^Cakefile"],
  101. ColdFusion: ["cfm"],
  102. CSharp: ["cs"],
  103. CSS: ["css"],
  104. Curly: ["curly"],
  105. D: ["d|di"],
  106. Dart: ["dart"],
  107. Diff: ["diff|patch"],
  108. Dockerfile: ["^Dockerfile"],
  109. Dot: ["dot"],
  110. Dummy: ["dummy"],
  111. DummySyntax: ["dummy"],
  112. Eiffel: ["e"],
  113. EJS: ["ejs"],
  114. Elixir: ["ex|exs"],
  115. Elm: ["elm"],
  116. Erlang: ["erl|hrl"],
  117. Forth: ["frt|fs|ldr"],
  118. FTL: ["ftl"],
  119. Gcode: ["gcode"],
  120. Gherkin: ["feature"],
  121. Gitignore: ["^.gitignore"],
  122. Glsl: ["glsl|frag|vert"],
  123. golang: ["go"],
  124. Groovy: ["groovy"],
  125. HAML: ["haml"],
  126. Handlebars: ["hbs|handlebars|tpl|mustache"],
  127. Haskell: ["hs"],
  128. haXe: ["hx"],
  129. HTML: ["html|htm|xhtml"],
  130. HTML_Ruby: ["erb|rhtml|html.erb"],
  131. INI: ["ini|conf|cfg|prefs"],
  132. Io: ["io"],
  133. Jack: ["jack"],
  134. Jade: ["jade"],
  135. Java: ["java"],
  136. JavaScript: ["js|jsm"],
  137. JSON: ["json"],
  138. JSONiq: ["jq"],
  139. JSP: ["jsp"],
  140. JSX: ["jsx"],
  141. Julia: ["jl"],
  142. LaTeX: ["tex|latex|ltx|bib"],
  143. LESS: ["less"],
  144. Liquid: ["liquid"],
  145. Lisp: ["lisp"],
  146. LiveScript: ["ls"],
  147. LogiQL: ["logic|lql"],
  148. LSL: ["lsl"],
  149. Lua: ["lua"],
  150. LuaPage: ["lp"],
  151. Lucene: ["lucene"],
  152. Makefile: ["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],
  153. Markdown: ["md|markdown"],
  154. Mask: ["mask"],
  155. MATLAB: ["matlab"],
  156. MEL: ["mel"],
  157. MUSHCode: ["mc|mush"],
  158. MySQL: ["mysql"],
  159. Nix: ["nix"],
  160. ObjectiveC: ["m|mm"],
  161. OCaml: ["ml|mli"],
  162. Pascal: ["pas|p"],
  163. Perl: ["pl|pm"],
  164. pgSQL: ["pgsql"],
  165. PHP: ["php|phtml"],
  166. Powershell: ["ps1"],
  167. Praat: ["praat|praatscript|psc|proc"],
  168. Prolog: ["plg|prolog"],
  169. Properties: ["properties"],
  170. Protobuf: ["proto"],
  171. Python: ["py"],
  172. R: ["r"],
  173. RDoc: ["Rd"],
  174. RHTML: ["Rhtml"],
  175. Ruby: ["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],
  176. Rust: ["rs"],
  177. SASS: ["sass"],
  178. SCAD: ["scad"],
  179. Scala: ["scala"],
  180. Scheme: ["scm|rkt"],
  181. SCSS: ["scss"],
  182. SH: ["sh|bash|^.bashrc"],
  183. SJS: ["sjs"],
  184. Smarty: ["smarty|tpl"],
  185. snippets: ["snippets"],
  186. Soy_Template:["soy"],
  187. Space: ["space"],
  188. SQL: ["sql"],
  189. Stylus: ["styl|stylus"],
  190. SVG: ["svg"],
  191. Tcl: ["tcl"],
  192. Tex: ["tex"],
  193. Text: ["txt"],
  194. Textile: ["textile"],
  195. Toml: ["toml"],
  196. Twig: ["twig"],
  197. Typescript: ["ts|typescript|str"],
  198. Vala: ["vala"],
  199. VBScript: ["vbs|vb"],
  200. Velocity: ["vm"],
  201. Verilog: ["v|vh|sv|svh"],
  202. VHDL: ["vhd|vhdl"],
  203. XML: ["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl"],
  204. XQuery: ["xq"],
  205. YAML: ["yaml|yml"]
  206. };
  207. var nameOverrides = {
  208. ObjectiveC: "Objective-C",
  209. CSharp: "C#",
  210. golang: "Go",
  211. C_Cpp: "C and C++",
  212. coffee: "CoffeeScript",
  213. HTML_Ruby: "HTML (Ruby)",
  214. FTL: "FreeMarker"
  215. };
  216. var modesByName = {};
  217. for (var name in supportedModes) {
  218. var data = supportedModes[name];
  219. var displayName = (nameOverrides[name] || name).replace(/_/g, " ");
  220. var filename = name.toLowerCase();
  221. var mode = new Mode(filename, displayName, data[0]);
  222. modesByName[filename] = mode;
  223. modes.push(mode);
  224. }
  225. module.exports = {
  226. getModeForPath: getModeForPath,
  227. modes: modes,
  228. modesByName: modesByName
  229. };
  230. });
  231. ace.define("ace/ext/themelist",["require","exports","module","ace/lib/fixoldbrowsers"], function(require, exports, module) {
  232. "use strict";
  233. require("ace/lib/fixoldbrowsers");
  234. var themeData = [
  235. ["Chrome" ],
  236. ["Clouds" ],
  237. ["Crimson Editor" ],
  238. ["Dawn" ],
  239. ["Dreamweaver" ],
  240. ["Eclipse" ],
  241. ["GitHub" ],
  242. ["Solarized Light"],
  243. ["TextMate" ],
  244. ["Tomorrow" ],
  245. ["XCode" ],
  246. ["Kuroir"],
  247. ["KatzenMilch"],
  248. ["Ambiance" ,"ambiance" , "dark"],
  249. ["Chaos" ,"chaos" , "dark"],
  250. ["Clouds Midnight" ,"clouds_midnight" , "dark"],
  251. ["Cobalt" ,"cobalt" , "dark"],
  252. ["idle Fingers" ,"idle_fingers" , "dark"],
  253. ["krTheme" ,"kr_theme" , "dark"],
  254. ["Merbivore" ,"merbivore" , "dark"],
  255. ["Merbivore Soft" ,"merbivore_soft" , "dark"],
  256. ["Mono Industrial" ,"mono_industrial" , "dark"],
  257. ["Monokai" ,"monokai" , "dark"],
  258. ["Pastel on dark" ,"pastel_on_dark" , "dark"],
  259. ["Solarized Dark" ,"solarized_dark" , "dark"],
  260. ["Terminal" ,"terminal" , "dark"],
  261. ["Tomorrow Night" ,"tomorrow_night" , "dark"],
  262. ["Tomorrow Night Blue" ,"tomorrow_night_blue" , "dark"],
  263. ["Tomorrow Night Bright","tomorrow_night_bright" , "dark"],
  264. ["Tomorrow Night 80s" ,"tomorrow_night_eighties" , "dark"],
  265. ["Twilight" ,"twilight" , "dark"],
  266. ["Vibrant Ink" ,"vibrant_ink" , "dark"]
  267. ];
  268. exports.themesByName = {};
  269. exports.themes = themeData.map(function(data) {
  270. var name = data[1] || data[0].replace(/ /g, "_").toLowerCase();
  271. var theme = {
  272. caption: data[0],
  273. theme: "ace/theme/" + name,
  274. isDark: data[2] == "dark",
  275. name: name
  276. };
  277. exports.themesByName[name] = theme;
  278. return theme;
  279. });
  280. });
  281. ace.define("ace/ext/menu_tools/add_editor_menu_options",["require","exports","module","ace/ext/modelist","ace/ext/themelist"], function(require, exports, module) {
  282. 'use strict';
  283. module.exports.addEditorMenuOptions = function addEditorMenuOptions (editor) {
  284. var modelist = require('../modelist');
  285. var themelist = require('../themelist');
  286. editor.menuOptions = {
  287. setNewLineMode: [{
  288. textContent: "unix",
  289. value: "unix"
  290. }, {
  291. textContent: "windows",
  292. value: "windows"
  293. }, {
  294. textContent: "auto",
  295. value: "auto"
  296. }],
  297. setTheme: [],
  298. setMode: [],
  299. setKeyboardHandler: [{
  300. textContent: "ace",
  301. value: ""
  302. }, {
  303. textContent: "vim",
  304. value: "ace/keyboard/vim"
  305. }, {
  306. textContent: "emacs",
  307. value: "ace/keyboard/emacs"
  308. }, {
  309. textContent: "textarea",
  310. value: "ace/keyboard/textarea"
  311. }, {
  312. textContent: "sublime",
  313. value: "ace/keyboard/sublime"
  314. }]
  315. };
  316. editor.menuOptions.setTheme = themelist.themes.map(function(theme) {
  317. return {
  318. textContent: theme.caption,
  319. value: theme.theme
  320. };
  321. });
  322. editor.menuOptions.setMode = modelist.modes.map(function(mode) {
  323. return {
  324. textContent: mode.name,
  325. value: mode.mode
  326. };
  327. });
  328. };
  329. });
  330. ace.define("ace/ext/menu_tools/get_set_functions",["require","exports","module"], function(require, exports, module) {
  331. 'use strict';
  332. module.exports.getSetFunctions = function getSetFunctions (editor) {
  333. var out = [];
  334. var my = {
  335. 'editor' : editor,
  336. 'session' : editor.session,
  337. 'renderer' : editor.renderer
  338. };
  339. var opts = [];
  340. var skip = [
  341. 'setOption',
  342. 'setUndoManager',
  343. 'setDocument',
  344. 'setValue',
  345. 'setBreakpoints',
  346. 'setScrollTop',
  347. 'setScrollLeft',
  348. 'setSelectionStyle',
  349. 'setWrapLimitRange'
  350. ];
  351. ['renderer', 'session', 'editor'].forEach(function(esra) {
  352. var esr = my[esra];
  353. var clss = esra;
  354. for(var fn in esr) {
  355. if(skip.indexOf(fn) === -1) {
  356. if(/^set/.test(fn) && opts.indexOf(fn) === -1) {
  357. opts.push(fn);
  358. out.push({
  359. 'functionName' : fn,
  360. 'parentObj' : esr,
  361. 'parentName' : clss
  362. });
  363. }
  364. }
  365. }
  366. });
  367. return out;
  368. };
  369. });
  370. ace.define("ace/ext/menu_tools/generate_settings_menu",["require","exports","module","ace/ext/menu_tools/element_generator","ace/ext/menu_tools/add_editor_menu_options","ace/ext/menu_tools/get_set_functions"], function(require, exports, module) {
  371. 'use strict';
  372. var egen = require('./element_generator');
  373. var addEditorMenuOptions = require('./add_editor_menu_options').addEditorMenuOptions;
  374. var getSetFunctions = require('./get_set_functions').getSetFunctions;
  375. module.exports.generateSettingsMenu = function generateSettingsMenu (editor) {
  376. var elements = [];
  377. function cleanupElementsList() {
  378. elements.sort(function(a, b) {
  379. var x = a.getAttribute('contains');
  380. var y = b.getAttribute('contains');
  381. return x.localeCompare(y);
  382. });
  383. }
  384. function wrapElements() {
  385. var topmenu = document.createElement('div');
  386. topmenu.setAttribute('id', 'ace_settingsmenu');
  387. elements.forEach(function(element) {
  388. topmenu.appendChild(element);
  389. });
  390. var el = topmenu.appendChild(document.createElement('div'));
  391. var version = "1.1.8";
  392. el.style.padding = "1em";
  393. el.textContent = "Ace version " + version;
  394. return topmenu;
  395. }
  396. function createNewEntry(obj, clss, item, val) {
  397. var el;
  398. var div = document.createElement('div');
  399. div.setAttribute('contains', item);
  400. div.setAttribute('class', 'ace_optionsMenuEntry');
  401. div.setAttribute('style', 'clear: both;');
  402. div.appendChild(egen.createLabel(
  403. item.replace(/^set/, '').replace(/([A-Z])/g, ' $1').trim(),
  404. item
  405. ));
  406. if (Array.isArray(val)) {
  407. el = egen.createSelection(item, val, clss);
  408. el.addEventListener('change', function(e) {
  409. try{
  410. editor.menuOptions[e.target.id].forEach(function(x) {
  411. if(x.textContent !== e.target.textContent) {
  412. delete x.selected;
  413. }
  414. });
  415. obj[e.target.id](e.target.value);
  416. } catch (err) {
  417. throw new Error(err);
  418. }
  419. });
  420. } else if(typeof val === 'boolean') {
  421. el = egen.createCheckbox(item, val, clss);
  422. el.addEventListener('change', function(e) {
  423. try{
  424. obj[e.target.id](!!e.target.checked);
  425. } catch (err) {
  426. throw new Error(err);
  427. }
  428. });
  429. } else {
  430. el = egen.createInput(item, val, clss);
  431. el.addEventListener('change', function(e) {
  432. try{
  433. if(e.target.value === 'true') {
  434. obj[e.target.id](true);
  435. } else if(e.target.value === 'false') {
  436. obj[e.target.id](false);
  437. } else {
  438. obj[e.target.id](e.target.value);
  439. }
  440. } catch (err) {
  441. throw new Error(err);
  442. }
  443. });
  444. }
  445. el.style.cssText = 'float:right;';
  446. div.appendChild(el);
  447. return div;
  448. }
  449. function makeDropdown(item, esr, clss, fn) {
  450. var val = editor.menuOptions[item];
  451. var currentVal = esr[fn]();
  452. if (typeof currentVal == 'object')
  453. currentVal = currentVal.$id;
  454. val.forEach(function(valuex) {
  455. if (valuex.value === currentVal)
  456. valuex.selected = 'selected';
  457. });
  458. return createNewEntry(esr, clss, item, val);
  459. }
  460. function handleSet(setObj) {
  461. var item = setObj.functionName;
  462. var esr = setObj.parentObj;
  463. var clss = setObj.parentName;
  464. var val;
  465. var fn = item.replace(/^set/, 'get');
  466. if(editor.menuOptions[item] !== undefined) {
  467. elements.push(makeDropdown(item, esr, clss, fn));
  468. } else if(typeof esr[fn] === 'function') {
  469. try {
  470. val = esr[fn]();
  471. if(typeof val === 'object') {
  472. val = val.$id;
  473. }
  474. elements.push(
  475. createNewEntry(esr, clss, item, val)
  476. );
  477. } catch (e) {
  478. }
  479. }
  480. }
  481. addEditorMenuOptions(editor);
  482. getSetFunctions(editor).forEach(function(setObj) {
  483. handleSet(setObj);
  484. });
  485. cleanupElementsList();
  486. return wrapElements();
  487. };
  488. });
  489. ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
  490. 'use strict';
  491. var dom = require("../../lib/dom");
  492. var cssText = "#ace_settingsmenu, #kbshortcutmenu {\
  493. background-color: #F7F7F7;\
  494. color: black;\
  495. box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);\
  496. padding: 1em 0.5em 2em 1em;\
  497. overflow: auto;\
  498. position: absolute;\
  499. margin: 0;\
  500. bottom: 0;\
  501. right: 0;\
  502. top: 0;\
  503. z-index: 9991;\
  504. cursor: default;\
  505. }\
  506. .ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {\
  507. box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);\
  508. background-color: rgba(255, 255, 255, 0.6);\
  509. color: black;\
  510. }\
  511. .ace_optionsMenuEntry:hover {\
  512. background-color: rgba(100, 100, 100, 0.1);\
  513. -webkit-transition: all 0.5s;\
  514. transition: all 0.3s\
  515. }\
  516. .ace_closeButton {\
  517. background: rgba(245, 146, 146, 0.5);\
  518. border: 1px solid #F48A8A;\
  519. border-radius: 50%;\
  520. padding: 7px;\
  521. position: absolute;\
  522. right: -8px;\
  523. top: -8px;\
  524. z-index: 1000;\
  525. }\
  526. .ace_closeButton{\
  527. background: rgba(245, 146, 146, 0.9);\
  528. }\
  529. .ace_optionsMenuKey {\
  530. color: darkslateblue;\
  531. font-weight: bold;\
  532. }\
  533. .ace_optionsMenuCommand {\
  534. color: darkcyan;\
  535. font-weight: normal;\
  536. }";
  537. dom.importCssString(cssText);
  538. module.exports.overlayPage = function overlayPage(editor, contentElement, top, right, bottom, left) {
  539. top = top ? 'top: ' + top + ';' : '';
  540. bottom = bottom ? 'bottom: ' + bottom + ';' : '';
  541. right = right ? 'right: ' + right + ';' : '';
  542. left = left ? 'left: ' + left + ';' : '';
  543. var closer = document.createElement('div');
  544. var contentContainer = document.createElement('div');
  545. function documentEscListener(e) {
  546. if (e.keyCode === 27) {
  547. closer.click();
  548. }
  549. }
  550. closer.style.cssText = 'margin: 0; padding: 0; ' +
  551. 'position: fixed; top:0; bottom:0; left:0; right:0;' +
  552. 'z-index: 9990; ' +
  553. 'background-color: rgba(0, 0, 0, 0.3);';
  554. closer.addEventListener('click', function() {
  555. document.removeEventListener('keydown', documentEscListener);
  556. closer.parentNode.removeChild(closer);
  557. editor.focus();
  558. closer = null;
  559. });
  560. document.addEventListener('keydown', documentEscListener);
  561. contentContainer.style.cssText = top + right + bottom + left;
  562. contentContainer.addEventListener('click', function(e) {
  563. e.stopPropagation();
  564. });
  565. var wrapper = dom.createElement("div");
  566. wrapper.style.position = "relative";
  567. var closeButton = dom.createElement("div");
  568. closeButton.className = "ace_closeButton";
  569. closeButton.addEventListener('click', function() {
  570. closer.click();
  571. });
  572. wrapper.appendChild(closeButton);
  573. contentContainer.appendChild(wrapper);
  574. contentContainer.appendChild(contentElement);
  575. closer.appendChild(contentContainer);
  576. document.body.appendChild(closer);
  577. editor.blur();
  578. };
  579. });
  580. ace.define("ace/ext/settings_menu",["require","exports","module","ace/ext/menu_tools/generate_settings_menu","ace/ext/menu_tools/overlay_page","ace/editor"], function(require, exports, module) {
  581. "use strict";
  582. var generateSettingsMenu = require('./menu_tools/generate_settings_menu').generateSettingsMenu;
  583. var overlayPage = require('./menu_tools/overlay_page').overlayPage;
  584. function showSettingsMenu(editor) {
  585. var sm = document.getElementById('ace_settingsmenu');
  586. if (!sm)
  587. overlayPage(editor, generateSettingsMenu(editor), '0', '0', '0');
  588. }
  589. module.exports.init = function(editor) {
  590. var Editor = require("ace/editor").Editor;
  591. Editor.prototype.showSettingsMenu = function() {
  592. showSettingsMenu(this);
  593. };
  594. };
  595. });
  596. (function() {
  597. ace.require(["ace/ext/settings_menu"], function() {});
  598. })();