Assuming you're using Javascript, the easiest way would be:
var block = [
'/***',
' * <function description>',
' * @author %Username%',
' * @param <type> <name> - <description>',
' * @param <type> <name> - <description>',
' */'
].join("\n");
function doIt() {
// Grab the active editor
var e = newEditor(); e.assignActiveEditor();
if (!e) return;
// Replace all variables in the block with their values
var code = block.replace(/(%[a-zA-Z0-9_]+%)/, function(x) { return
getVarValue(x); });
// Insert the text into the editor
e.selText(code);
}
--
<http://forum.pspad.com/read.php?2,43679,43682>
PSPad freeware editor http://www.pspad.com