Listing 1. Code Documentation in HTML

<HTML><HEAD>
<TITLE>Code Design Document</TITLE>
<SCRIPT language="JavaScript">
function extract(instring , strpos) {
  first=instring.indexOf("$",instring);
  last=instring.lastIndexOf("$",instring);
  str=instring.substring(first+1+strpos,last);
  return(str); }
</SCRIPT></HEAD>
<BODY BGCOLOR="#FFFFFF"><center>
<font face="Helvetica,Arial" size=+4>
  <B>My Company</b></font><p>
<font face="Helvetica,Arial" size=+2>
  <B>Speech Code Design Document</B></font><p>
<font face="Helvetica,Arial">This
  document describes the design process used in
  developing the code</font><p>
<SCRIPT LANGUAGE="JavaScript">
Authorstring="$Author: asian $";
IDstring="$Id: test.html,v 1.9 1998/12/28
  05:38:51 asian Exp asian $";
Datestring="$Date: 1998/12/28 05:38:51 $";
document.write('<TABLE BORDER=0 BGCOLOR="FFB0B0"
  CELLPADDING=4>');
document.write("<TR><TH COLSPAN=2>Quality audit
  information:</TH></TR>");
document.write("<TR><TD><B>Author</B>
  </TD><TD>"+extract(Authorstring,7)+"
  </TD></TR>");
document.write("<TR><TD><B>RCS check
date</B></TD><TD>"+extract(Datestring,5)
  +"</TD></TR>");
document.write("<TR><TD><B>Document
ID</B></TD><TD>"+extract(IDstring,3)
  +"</TD></TR>");
document.write("</TABLE>");
</SCRIPT>
</BODY></HTML>