Merge remote-tracking branch 'enderandpeter/focus'

master
Jordi Boggiano 12 years ago
commit 7f21c2ebaa
  1. 6
      php-console.js

@ -85,6 +85,12 @@
editor = ace.edit(options.editor);
// give focus
editor.focus();
// move cursor to line 2
editor.gotoLine(2,0);
// set mode
PhpMode = require("ace/mode/php").Mode;
editor.getSession().setMode(new PhpMode());

Loading…
Cancel
Save