PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
![]() | ![]() | ![]() | ![]() | ![]() |
Switch /ExtnInfo[:ExtnList:ExtnSpec] |
This is a PPWIZARD command line switch.
This switch allows you to configure default information for an input file extension. This includes processing modes and file output file generate masks. If the generated output can be syntax checked then you can also define this.
If no parameter is passed then this is a request to clear any existing extension information (both PPWIZARD inbuilt and user defined).
PPWIZARD sets up some defaults (such as a ".it" file generates ".htm" in "HTML" mode), these can be overridden by this switch.
The "ExtnList" parameter is one or more comma separated extensions (no leading dot). "*" can be used to represent all extensions.
The "ExtnSpec" parameter is one or more space or comma separated values which look like:
If the quoted value begins with LU: then you wish the last specified processing mode used if available. If not available whatever follows "LU:" will be used.
If the quoted value begins with LU: then you wish the last specified output mask used if available. If not available whatever follows "LU:" will be used.
If the quoted value begins with LU: then you wish the last specified dependancy mask used if available. If not available whatever follows "LU:" will be used. Note that the support for this is not perfect (yet), the reason being that "" is a perfectly good option (on "/DependsOn") however PPWIZARD will see this as meaning that nothing was chosen.
Any other value is not used by PPWIZARD and you can obtain the information using ExtnInfoGet(). Note that PPWIZARD reserves all values containing upper case characters (it will never use all lower case ones).
Example |
Change extension of generated HTML to ".html", make sure the directory is as specified on command line (defaults to current directory), and specifically add the ".i" extension. Note that while the ".i" is covered by the "*", it would not be if "*" was later redefined.
/ExtnInfo:it,i,*:PM='LU:HTML',OM='LU:{$OutputDir}*.html'
You can also have a look at the PPWIZARD_OPTIONS example.