Subj : Re: Using basic HTML code in pascal program
To   : Donald Tidmore
From : Scott Adams
Date : Sun Aug 21 2005 03:57 am

-=> Quoting Donald Tidmore to All <=-

DT> I'm hoping that one of you can give me instructions on how one can
DT> take a basic Lord program, in this case Jason Brown's LordStat
DT> utility, and change it so that it can output basic HTML text files.
DT> The program currently makes ANSI and ASCII bulletin files to cover
DT> usage of the LORD and Lord/32 beta bbs door games.  What I want to do
DT> is write simple HTML files but I have no idea as to how to go about
DT> doing that.
DT> So can one of you provide me with information on this topic?  I figure
DT> that someone somewhere has done this sort of thing, and I hope one of
DT> them is still active in this echo.  Thanks, Donald.

       Its fiarly easy to convers ansi output to html.  Just
       have to write the basic conversion stuff.

       Best thing to do is study ansi codes and then html
       layout.  Assuming you don't want to be too fancy with
       html theres only about 20 lines of html that is only
       needed and maybe 4-5 html commands for a basic output
       file.  So its not that hard.

       Theres some good html tutorials out there.  I think
       I may still have some on my Links page on my website.
       http://users.cybermax.net/~longshot and then the
       links page.  Been awhile so unsure not checked it
       in awhile.  Need too. :)

       This is the basic format o a simple html webpage..

<html>
<head>
  <title>Some Title</title>
</head>
<body>

 Your text here...

</body>
</html>

      Course if you want more fancy stuff like colors and
      blocking like <center> or such then you can add
      those as well.  But that's it.  So all your program
      would have to do is insert the top/bottom and then
      write to the body section.  I suspect it'll be harder
      to strip the ansi codes out than it would be to do
      the html stuff.

      Check out SWAG for a whole parcel of ANSI related pascal
      code.

... "Private Durman? Care to join us?" - Plug to Dodger
--- Fringe BBS
* Origin: EWOG II - The Fringe - 904-733-1721 (1:112/91)