PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
| AutoTagAdd() |
This is an inbuilt function function provided by PPWIZARD.
This function is an alternative to the #AutoTag command for defining autotags (see it for more detail).
Being rexx you have full control over what you pass it (the #AutoTag command's first parameter never has macros replaced.
It takes these parameters:
| Example |
;--- Macro holds value we wish replaced ---
#define FRED aaa
#autotag on
;--- This won't work as 1st parm not replaced ---
;#autotag ^<$FRED>^ ^[Worked]^
;--- This will work! --------------------------------------------------------
#DefineRexx ''
call AutoTagAdd MacroGet("FRED"), "[Worked]"
#DefineRexx
;--- Test it ---
aaa aaa aaa