PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: ExpandX[Next]: KeepIndent
\ -> Commands -> #option -> HashPrefix

HashPrefix=["]NewPrefix["]

This #option command allows you to modify the characters which tell PPWIZARD that a line contains a ppwizard command. The default is that PPWIZARD commands begin with '#'.

The NewPrefix parameter if empty sets the default value or specifies the new character or characters that preceed all commands.

This command is useful if the language or file you are processing already uses the '#' character for its own reasons. Rather than using many <?HashPrefix> codes it is much easier to move PPWIZARD out of the way.

Warning

Extra care must be taken when changing this value within a macro as PPWIZARD needs to locate commands when the macro is defined!

Problems cause by this issue will be "weird", lines will be combined where you wouldn't expect.

If used within a macro then I recommend that any temporary change be to a new prefix that begins with the old, so for example if the prefix was originally "#" change it to "#!" or if it was "&" then change it to "&!".

Example

#include "FILE1.IH"
#option   hashprefix='!'        ;;Set prefix to '!'
!include "FILE2.IH"
!option   hashprefix=''         ;;Set prefix to default value
#include "FILE3.IH"


email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: ExpandX[Next]: KeepIndent


PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm