home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
debughtm.zip
/
debug.ih
Wrap
Text File
|
1999-11-20
|
3KB
|
80 lines
;----------------------------------------------------------------------------
; MODULE NAME: DEBUG.IH
;
; $Author: Dennis_Bareis $
; $Revision: 1.0 $
; $Date: 20 Nov 1999 13:11:20 $
; $Logfile: E:/DB/PVCS.IT/OS2/PPWIZARD/DEBUG.IHV $
;
; DESCRIPTION: This is a simple header to make it easier to add
; debug comments into your generated HTML.
;
; The basic theory behind this header is that you do not
; want any (or many) comments in your generated HTML code
; however while developing your code you find it handy to
; generate HTML comments so you can see whats happening.
;
; You can add as many ppwizard comments as you like,
; as you can see these start with ';' and will not appear
; in the html, the comment macros in this header appear
; in the generated html only if debuf mode is on (see
; "/debug").
;
; See the end of this file for some example HTML using
; the macros.
;----------------------------------------------------------------------------
;--- Make sure only included once! ------------------------------------------
#ifdef HEADER_DEBUG_IH
#eof 1 ;;Already included
#endif
#define HEADER_DEBUG_IH 99.324
#require 99.313
;--- Outputs HTML comment only when debug is on -----------------------------
#define _HtmlOutputIfDebugIsOn \
#if ['<?DebugOn>' = 'Y'] -\
{$Text}<?NewLine> -\
#endif
;--- Use these in your HTML -------------------------------------------------
#define HtmlDebugComment \
<$_HtmlOutputIfDebugIsOn Text=^<?NewLine><!--- {$Text} --->^>
#define HtmlDebugNL \
<$_HtmlOutputIfDebugIsOn Text=^^>
#define HtmlHereIAm \
<$_HtmlOutputIfDebugIsOn Text=^<?NewLine><!--- Now at line <?InputComponentLine> of <?InputComponent> --->^>
;---[ END OF DEBUG HEADER CODE] ---------------------------------------------
#eof ;;Stop header processing (ignore this line)
*****************************************************************************
*****[ EXAMPLE HTML ]********************************************************
*****************************************************************************
#include "debug.ih" ;;Load this header
<$HtmlHereIAm>
<HTML>
<$HtmlDebugComment Text="Defining HEAD of HTML">
<HEAD>
</HEAD>
<$HtmlDebugComment Text="Defining BODY of HTML">
<BODY>
<$HtmlDebugComment Text="Defining FOOTER of HTML">
<HR>A Footer
</BODY>
</HTML>
<$HtmlHereIAm>