Guava

The Guava Tools

Example - test1.hss


Home  Computer Software  Guava Main Page  Guava Examples 

The following source code should be compiled with:
 
$ hss2html test1.hss	

 
/* test1.hss */

#include "colours.inc"

#define TITLESTRING Test 1.

<HTML>

<HEAD>
<TITLE> TITLESTRING </TITLE>
</HEAD>

<BODY BGCOLOR = BG_COLOUR
      TEXT    = TX_COLOUR
      VLINK   = VL_COLOUR
      LINK    = LN_COLOUR >

<HTML>
	<!-- An HTML comment will not be removed from the output. -->
	/* A 'C' style comment will be removed by the C pre-processor. */
	
	<P>This is the page text for Test 1.

</HTML>

 
/* colours.inc */

#define BG_COLOUR "#006600"  /* Dark green */
#define TX_COLOUR "#FFFFFF"  /* White */
#define VL_COLOUR "#999999"  /* Grey  */
#define LN_COLOUR "#FFFFFF"  /* White */

 

This output will be produced:
 

test1.html
<!-- HTML generated at Wed Dec  1 23:00:50 1999.
hss2html by Steve Morphet 1999. -->
<HTML>
<HEAD>
<TITLE> Test 1. </TITLE>
</HEAD>
<BODY BGCOLOR = "#006600"
      TEXT    = "#FFFFFF"
      VLINK   = "#999999"
      LINK    = "#FFFFFF" >
<HTML>
	<!-- An HTML comment will not be removed from the output. -->
	<P>This is the page text for Test 1.
</HTML>



Email: