title: Ace Editor API: How to select line 2?
body: <p>I want to select line 2 for copy &amp; paste in ACE. There is a method <code>selectLine()</code>, which is documented here: <a href="http://ace.c9.io/#nav=api&amp;api=selection" rel="nofollow">http://ace.c9.io/#nav=api&amp;api=selection</a> but i don't understand how to use it. Unfortunately its also nothing to find on stackoverflow.com about selection, only about highlighting, which is not the same.</p>
  
  <pre><code>// ACE Editor Setup
  var editor = ace.edit("editor");
  editor.setTheme("ace/theme/crimson_editor");
  editor.getSession().setMode("ace/mode/html");
  editor.setValue("textline1\n textline2\n textline3");
  
  var select = new Selection(editor.getSession());    // Uncaught TypeError: Illegal constructor
  select.selectLine(2);
  </code></pre>