PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
The following areas are probably of interest to you: