I am writing a macro to create script/procedure header to look something like
this:
# ############################
# Procedure:    FooBar
# Author:       John Smith
# Written       Thursday, 25 June 2020
# description:  Create foobar object
#
Function FooBar {
                 [CmdletBinding]
                 Param ()
                 [Switch]
                 $Name
}

The clip I have looks like:
[Function Builder | Build parameters for new functions]
# ############################
# Procedure:    %name%
# Author:       %autor%
# Written       %date%
# description:  %desc%
#
Function %name% {
                 [CmdletBinding]
                 Param ([%man1%])
                 %type1%
                 %Param1%%Def1%
}

The problem variable _%author%_ is created with this line:

%autor%=@E Author name:,,%UserName%

What I actually get is:

_# Author:      %UserName%_

Is there a way to use user defined variables (Settings->User Variables...) as
the default value in a macro definition?

-- 
<https://forum.pspad.com/read.php?2,73875,73875>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem