title: How to wrap selected code with user defined text before and after the selection
body: <p>In eclipse, I'd like to select a section of code with my mouse and then hit some sort of keyboard shortcut that causes the selection to be surrounded like so:</p>
  
  <pre><code>// [region]
  public void someFunction() {
      ...
  }
  // [endregion]
  </code></pre>
  
  <p>Where the code is surrounded by the (user defined) comment lines "// [region]" and "// [endregion]" How would I do this? In netbeans, you can do something similar as referenced here: <a href="http://wiki.netbeans.org/SurroundWithCodeFolding" rel="nofollow">http://wiki.netbeans.org/SurroundWithCodeFolding</a></p>