Code Template Tools module now supports ${clipboard-content} parameter
${clipboard-content} - If the clipboard had any text, that text will be inserted at the location of ${clipboard-content} parameter. Use ${clipboard-content editable=false} to prevent editing of inserted text.
For example:
With template definition:
_hyperlink=<a href="${clipboard-content editable=false}" target="_blank">${selection editable=false}</a>
And the text:
Netbeans.org
selected in the editor and text:
http://www.netbeans.org
in the clipboard, inserting template
_hyperlink results in
<a href="http://www.netbeans.org/" target="_blank">Netbeans.org</a>
Also the paste register functionality is implemented as template insertion allowing the substitution of ${...} parameters. See this entry for details.
Get it from my NetBeans 5.0 update center described (here).
DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.
Posted by sandipchitale
( May 08 2006, 01:31:38 PM PDT ) Permalink