TRYME.IT
VERY SIMPLE TEST PAGE

My email address is "db0@anz.com".

I will display the email address again but in the style "red" to demonstrate how a parameter is passed. My email address is "db0@anz.com".

The PPWIZARD documentation provides many larger examples that you could cut and paste into a file and try yourself.

This is an example on inline inclusion of code (note that the html comes out OK and the automatic hypertext links that were created):

        <P>The machine used to compile this header file does
        #if GetEnv('VACPP_SHARED') = ''
            not
        #endif
        have visual age C++ installed.
        

TRYME.IT SOURCE

    ;----------------------------------------------------------------------------
    ;
    ;    MODULE NAME:   TRYME.IT
    ;
    ;        $Author:   Dennis_Bareis  $
    ;      $Revision:   1.3  $
    ;          $Date:   25 May 1999 13:51:50  $
    ;       $Logfile:   E:/DB/PVCS.IT/OS2/PPWIZARD/TRYME.ITV  $
    ;
    ;    DESCRIPTION:   This input file is packaged with PPWIZARD to allow it
    ;                   to be used as a simple test by the person doing the
    ;                   install.
    ;
    ;                   To test the install on OS/2, execute the command:
    ;
    ;                      ppwizard tryme.it
    ;
    ;                   To test the install on other operating systems (PPWIZARD
    ;                   executes under REGINA), execute the command:
    ;
    ;                       (1) rexx   ppwizard.cmd tryme.it     OR
    ;                       (2) regina ppwizard.cmd tryme.it
    ;
    ;                   This should create "tryme.htm", view it in your
    ;                   browser if you wish.
    ;
    ;
    ;    You might notice that by DEFAULT ppwizard comment lines begin with
    ;    ";".  You might also notice that the table is indented to make it easier
    ;    to read, by default PPWIZARD will remove this indenting when generating
    ;    the html.
    ;
    ;    So basically you can comment as much as you like, indent as much as you
    ;    like and not worry about the download time or the fact that you might be
    ;    making it very easy for someone to examine the generated html.
    ;----------------------------------------------------------------------------
    #require  99.120
    
    
    ;----------------------------------------------------------------------------
    ;--- The definitions below are normally in their own header files -----------
    ;----------------------------------------------------------------------------
    
    ;--- Define some "constants" that are used on many pages --------------------
    #define   MyEmailAddress         db0@anz.com
    #define   MyHomeDirectory        http://www.labyrinth.net.au/~dbareis/
    #define   PpwizardDocoDirectory  <$MyHomeDirectory>ppwizard/
    #define   PPwizardWebAddress     <$MyHomeDirectory>ppwizard.htm
    
    ;--- Define a "STYLE" of text (who says you need style sheet support?) ------
    #define   Red                    <FONT COLOR=RED>{$Text}</FONT>
    
    ;--- Get some environmental type information --------------------------------
    #evaluate DateTime               @date('WeekDay') || ' ' || date('Month') || ' ' || substr(date('Sorted'), 7, 2) || ' ' || left(date('Sorted'), 4) || ' at ' || time('Civil')@
    #evaluate ShortNameHtml          "_filespec('name', '<?OutputFile>')"
    #evaluate ShortNameHtmlLowerCase "ToLowerCase('<$ShortNameHtml>')"
    
    ;--- To include definitions like the above you put all the definitions in
    ;--- one or more files (called header files) and then use a command similar
    ;--- to:
    ;---        #include "header.ih"
    
    ;----------------------------------------------------------------------------
    ;--- The definitions above are normally in their own header files -----------
    ;----------------------------------------------------------------------------
    
    
    
    ;--- Include "PRE" example support ------------------------------------------
    #include "htmlpre.ih"                  ;;This header file comes with PPWIZARD
    
    
    ;--- Start HTML -------------------------------------------------------------
    <HTML><HEAD>
          <TITLE>TRYME.IT - VERY SIMPLE TEST PAGE</TITLE>
    </HEAD>
    <BODY>
    <CENTER><H1>TRYME.IT<BR>VERY SIMPLE TEST PAGE</H1></CENTER>
    
    
    ;--- Paragraph 1 ------------------------------------------------------------
    <P>My email address is
    "<$MyEmailAddress>".
    
    
    ;--- Paragraph 2 ------------------------------------------------------------
    <P>I will display the email address again but in the style "red" to
    demonstrate how a parameter is passed. My email address is
    "<$RED Text='<$MyEmailAddress>'>".
    
    
    ;--- Paragraph 3 ------------------------------------------------------------
    <P>The PPWIZARD documentation provides many larger examples that you could
    cut and paste into a file and try yourself.
    
    
    ;--- Lets do some (not all) example autotagging (for demo purposes) ---------
    #AutoTag "<?xHASH>include"  ^<A HREF="<$PpwizardDocoDirectory>hashinclude.htm">{$AT}</A>^
    #AutoTag "<?xHASH>define"   ^<A HREF="<$PpwizardDocoDirectory>hashdefine.htm">{$AT}</A>^
    #AutoTag "<?xHASH>evaluate" ^<A HREF="<$PpwizardDocoDirectory>hashevaluate.htm">{$AT}</A>^
    #AutoTag "<?xHASH>if"       ^<A HREF="<$PpwizardDocoDirectory>hashif.htm">{$AT}</A>^
    #AutoTag "<?xHASH>elseif"   ^<A HREF="<$PpwizardDocoDirectory>hashelseif.htm">{$AT}</A>^
    #AutoTag "<?xHASH>endif"    ^<A HREF="<$PpwizardDocoDirectory>hashendif.htm">{$AT}</A>^
    
    ;--- Show a small inline example --------------------------------------------
    <P>This is an example on inline inclusion of code (note that the html comes
    out OK and the automatic hypertext links that were created):
    <$Example STATE="REMEMBER" INDENT=8>
    <P>The machine used to compile this header file does
    #if GetEnv('VACPP_SHARED') = ''
        not
    #endif
    have visual age C++ installed.
    <$eExample>
    
    
    ;--- Can now have recursive #include ----------------------------------------
    <CENTER><H1>TRYME.IT SOURCE</H1></CENTER>
    <$ExampleFile FILE="<?InputFile>" STATE="REMEMBER">
    
    ;**      CommentBlock  /* (Friday 30/04/1999, 17:21:34, by Dennis_Bareis) */
    ;**+--------------------------------------------------------------------------
    ;**|;--- Need copy of source file (can only have a single file open once) -------
    ;**|#define TmpFile   TryMe.TMP
    ;**|#if  '<?OpSys>' = 'UNIX'
    ;**|     #evaluate ^^ ^CopyRc = AddressCmd('cp   <?InputFile> <$TmpFile>')^   ;;Unix
    ;**|#elseif
    ;**|     #evaluate ^^ ^CopyRc = AddressCmd('copy <?InputFile> <$TmpFile>')^   ;;Other operating systems
    ;**|#endif
    ;**|
    ;**|
    ;**|;--- We won't show example code if the above copy failed --------------------
    ;**|#if  CopyRc = 0
    ;**|     ;--- Tell user what the following stuff is -----------------------------
    ;**|     <P>The following text is the source that generated the HTML code you
    ;**|     are now viewing in the html browser:
    ;**|
    ;**|     ;--- Include Example code (notice '<' gets converted to '&lt;' etc) ----
    ;**|     <$ExampleFile FILE="<$TmpFile>" STATE="REMEMBER">
    ;**|#elseif
    ;**|     ;--- Copy file (also show how lines can be continued -------------------
    ;**|     <P><$RED Text='                               -\
    ;**|                     Will not show this pages       \
    ;**|                     source as an example as        \
    ;**|                     the  copy failed,              \
    ;**|                     RC=<??CopyRc>                 -\
    ;**|                   '                               -\
    ;**|        >
    ;**|#endif
    ;**+--------------------------------------------------------------------------
    ;**                    /* (Friday 30/04/1999, 17:21:34, by Dennis_Bareis) */
    
    
    ;--- Simple End of HTML -----------------------------------------------------
    <P><HR>
    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=8 CELLSPACING=0 WIDTH="100%">
       <TR>
           <TD ALIGN=LEFT><CENTER><A HREF="<$PpwizardWebAddress>">Made<BR>with<BR>PPWIZARD<BR>and<BR><?OpSys></A></CENTER>
           <TD ALIGN=MIDDLE><$ShortNameHtmlLowerCase>
                            #ifndef  NO_TIME_WANTED
                                     ;--- user did not use "/define" or similar to indicate that a time is not desired ---
                                     <HR>
                                     Built at<BR><$DateTime>
                            #endif
           <TD ALIGN=RIGHT><A HREF="mailto:<$MyEmailAddress>"><$MyEmailAddress></A>
       </TR>
    </TABLE>
    </BODY></HTML>
    


Made
with
PPWIZARD
and
WINNT
tryme.htm
Built at
Monday February 14 2000 at 12:08pm
db0@anz.com