title: Javascript prepend to line in textarea on double click
body: <p>What I am trying to do:</p>
  
  <ol>
  <li>Double click a line in a textarea.</li>
  <li>Prevent text from being selected.</li>
  <li>Prepend a dash to that line.</li>
  </ol>
  
  <p>I know some basic jquery but can't seem to understand the lower level javascript that is required. Here is what I have so far:</p>
  
  <pre><code>$("textarea").dblclick(function() {
  
     //TODO: Prevent selection
  
  
     //TODO: Get the line number??
  
  
     //TODO: prepend a dash to the line
     // or replace the line with itself
     // plus the dash at the front??
  
  
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/scooke/4zk5otvm/1/" rel="nofollow">Here is the fiddle</a>.</p>