home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / ppwizard.zip / tryme.it < prev    next >
Text File  |  1999-05-25  |  8KB  |  170 lines

  1. ;----------------------------------------------------------------------------
  2. ;
  3. ;    MODULE NAME:   TRYME.IT
  4. ;
  5. ;        $Author:   Dennis_Bareis  $
  6. ;      $Revision:   1.3  $
  7. ;          $Date:   25 May 1999 13:51:50  $
  8. ;       $Logfile:   E:/DB/PVCS.IT/OS2/PPWIZARD/TRYME.ITV  $
  9. ;
  10. ;    DESCRIPTION:   This input file is packaged with PPWIZARD to allow it
  11. ;                   to be used as a simple test by the person doing the
  12. ;                   install.
  13. ;
  14. ;                   To test the install on OS/2, execute the command:
  15. ;
  16. ;                      ppwizard tryme.it
  17. ;
  18. ;                   To test the install on other operating systems (PPWIZARD
  19. ;                   executes under REGINA), execute the command:
  20. ;
  21. ;                       (1) rexx   ppwizard.cmd tryme.it     OR
  22. ;                       (2) regina ppwizard.cmd tryme.it
  23. ;
  24. ;                   This should create "tryme.htm", view it in your
  25. ;                   browser if you wish.
  26. ;
  27. ;
  28. ;    You might notice that by DEFAULT ppwizard comment lines begin with
  29. ;    ";".  You might also notice that the table is indented to make it easier
  30. ;    to read, by default PPWIZARD will remove this indenting when generating
  31. ;    the html.
  32. ;
  33. ;    So basically you can comment as much as you like, indent as much as you
  34. ;    like and not worry about the download time or the fact that you might be
  35. ;    making it very easy for someone to examine the generated html.
  36. ;----------------------------------------------------------------------------
  37. #require  99.120
  38.  
  39.  
  40. ;----------------------------------------------------------------------------
  41. ;--- The definitions below are normally in their own header files -----------
  42. ;----------------------------------------------------------------------------
  43.  
  44. ;--- Define some "constants" that are used on many pages --------------------
  45. #define   MyEmailAddress         db0@anz.com
  46. #define   MyHomeDirectory        http://www.labyrinth.net.au/~dbareis/
  47. #define   PpwizardDocoDirectory  <$MyHomeDirectory>ppwizard/
  48. #define   PPwizardWebAddress     <$MyHomeDirectory>ppwizard.htm
  49.  
  50. ;--- Define a "STYLE" of text (who says you need style sheet support?) ------
  51. #define   Red                    <FONT COLOR=RED>{$Text}</FONT>
  52.  
  53. ;--- Get some environmental type information --------------------------------
  54. #evaluate DateTime               @date('WeekDay') || ' ' || date('Month') || ' ' || substr(date('Sorted'), 7, 2) || ' ' || left(date('Sorted'), 4) || ' at ' || time('Civil')@
  55. #evaluate ShortNameHtml          "_filespec('name', '<?OutputFile>')"
  56. #evaluate ShortNameHtmlLowerCase "ToLowerCase('<$ShortNameHtml>')"
  57.  
  58. ;--- To include definitions like the above you put all the definitions in
  59. ;--- one or more files (called header files) and then use a command similar
  60. ;--- to:
  61. ;---        #include "header.ih"
  62.  
  63. ;----------------------------------------------------------------------------
  64. ;--- The definitions above are normally in their own header files -----------
  65. ;----------------------------------------------------------------------------
  66.  
  67.  
  68.  
  69. ;--- Include "PRE" example support ------------------------------------------
  70. #include "htmlpre.ih"                  ;;This header file comes with PPWIZARD
  71.  
  72.  
  73. ;--- Start HTML -------------------------------------------------------------
  74. <HTML><HEAD>
  75.       <TITLE>TRYME.IT - VERY SIMPLE TEST PAGE</TITLE>
  76. </HEAD>
  77. <BODY>
  78. <CENTER><H1>TRYME.IT<BR>VERY SIMPLE TEST PAGE</H1></CENTER>
  79.  
  80.  
  81. ;--- Paragraph 1 ------------------------------------------------------------
  82. <P>My email address is
  83. "<$MyEmailAddress>".
  84.  
  85.  
  86. ;--- Paragraph 2 ------------------------------------------------------------
  87. <P>I will display the email address again but in the style "red" to
  88. demonstrate how a parameter is passed. My email address is
  89. "<$RED Text='<$MyEmailAddress>'>".
  90.  
  91.  
  92. ;--- Paragraph 3 ------------------------------------------------------------
  93. <P>The PPWIZARD documentation provides many larger examples that you could
  94. cut and paste into a file and try yourself.
  95.  
  96.  
  97. ;--- Lets do some (not all) example autotagging (for demo purposes) ---------
  98. #AutoTag "<?xHASH>include"  ^<A HREF="<$PpwizardDocoDirectory>hashinclude.htm">{$AT}</A>^
  99. #AutoTag "<?xHASH>define"   ^<A HREF="<$PpwizardDocoDirectory>hashdefine.htm">{$AT}</A>^
  100. #AutoTag "<?xHASH>evaluate" ^<A HREF="<$PpwizardDocoDirectory>hashevaluate.htm">{$AT}</A>^
  101. #AutoTag "<?xHASH>if"       ^<A HREF="<$PpwizardDocoDirectory>hashif.htm">{$AT}</A>^
  102. #AutoTag "<?xHASH>elseif"   ^<A HREF="<$PpwizardDocoDirectory>hashelseif.htm">{$AT}</A>^
  103. #AutoTag "<?xHASH>endif"    ^<A HREF="<$PpwizardDocoDirectory>hashendif.htm">{$AT}</A>^
  104.  
  105. ;--- Show a small inline example --------------------------------------------
  106. <P>This is an example on inline inclusion of code (note that the html comes
  107. out OK and the automatic hypertext links that were created):
  108. <$Example STATE="REMEMBER" INDENT=8>
  109. <P>The machine used to compile this header file does
  110. #if GetEnv('VACPP_SHARED') = ''
  111.     not
  112. #endif
  113. have visual age C++ installed.
  114. <$eExample>
  115.  
  116.  
  117. ;--- Can now have recursive #include ----------------------------------------
  118. <CENTER><H1>TRYME.IT SOURCE</H1></CENTER>
  119. <$ExampleFile FILE="<?InputFile>" STATE="REMEMBER">
  120.  
  121. ;**      CommentBlock  /* (Friday 30/04/1999, 17:21:34, by Dennis_Bareis) */
  122. ;**+--------------------------------------------------------------------------
  123. ;**|;--- Need copy of source file (can only have a single file open once) -------
  124. ;**|#define TmpFile   TryMe.TMP
  125. ;**|#if  '<?OpSys>' = 'UNIX'
  126. ;**|     #evaluate ^^ ^CopyRc = AddressCmd('cp   <?InputFile> <$TmpFile>')^   ;;Unix
  127. ;**|#elseif
  128. ;**|     #evaluate ^^ ^CopyRc = AddressCmd('copy <?InputFile> <$TmpFile>')^   ;;Other operating systems
  129. ;**|#endif
  130. ;**|
  131. ;**|
  132. ;**|;--- We won't show example code if the above copy failed --------------------
  133. ;**|#if  CopyRc = 0
  134. ;**|     ;--- Tell user what the following stuff is -----------------------------
  135. ;**|     <P>The following text is the source that generated the HTML code you
  136. ;**|     are now viewing in the html browser:
  137. ;**|
  138. ;**|     ;--- Include Example code (notice '<' gets converted to '<' etc) ----
  139. ;**|     <$ExampleFile FILE="<$TmpFile>" STATE="REMEMBER">
  140. ;**|#elseif
  141. ;**|     ;--- Copy file (also show how lines can be continued -------------------
  142. ;**|     <P><$RED Text='                               -\
  143. ;**|                     Will not show this pages       \
  144. ;**|                     source as an example as        \
  145. ;**|                     the  copy failed,              \
  146. ;**|                     RC=<??CopyRc>                 -\
  147. ;**|                   '                               -\
  148. ;**|        >
  149. ;**|#endif
  150. ;**+--------------------------------------------------------------------------
  151. ;**                    /* (Friday 30/04/1999, 17:21:34, by Dennis_Bareis) */
  152.  
  153.  
  154. ;--- Simple End of HTML -----------------------------------------------------
  155. <P><HR>
  156. <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=8 CELLSPACING=0 WIDTH="100%">
  157.    <TR>
  158.        <TD ALIGN=LEFT><CENTER><A HREF="<$PpwizardWebAddress>">Made<BR>with<BR>PPWIZARD<BR>and<BR><?OpSys></A></CENTER>
  159.        <TD ALIGN=MIDDLE><$ShortNameHtmlLowerCase>
  160.                         #ifndef  NO_TIME_WANTED
  161.                                  ;--- user did not use "/define" or similar to indicate that a time is not desired ---
  162.                                  <HR>
  163.                                  Built at<BR><$DateTime>
  164.                         #endif
  165.        <TD ALIGN=RIGHT><A HREF="mailto:<$MyEmailAddress>"><$MyEmailAddress></A>
  166.    </TR>
  167. </TABLE>
  168. </BODY></HTML>
  169.  
  170.