🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1043

Re: how to convert text to html

#1043
From: Hans Galema
Date: Thu, 15 Sep 2005 11:17
34 lines
1792 bytes
viv wrote:

You have already seen that

  Hello james,

can be converted to

  <p>Hello james,</p>

by

       StringList->Strings[nr] = "<p>" + StringList->Strings[nr] + "</p> ";

So if you want to change it to:

 > <P>
 > <B><I><U>
 > <FONT face=Verdana>Hello james,</FONT>
 > </U></I></B>
 > </P>

exchange "<p>" by "<P>\r\n<B><I><U>\r\n<FONT face=Verdana>"

I leave it to you to do the "</p".

So the first line is different from all other lines ?

 > It should also work for any graphics/images.

How does the user type in a graphic ? Please supply input and
wanted output.

Hans.
Technical Details
Message-ID: <43295802$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43280c18$1@newsgroups.borland.com> <43281c12$1@newsgroups.borland.com> <4328edb6$1@newsgroups.borland.com> <43292dfb@newsgroups.borland.com> <43294df8@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,7e03cd2599fed9
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 15 Sep 2005 13:17:11 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: how to convert text to html
References: <43280c18$1@newsgroups.borland.com> <43281c12$1@newsgroups.borland.com> <4328edb6$1@newsgroups.borland.com> <43292dfb@newsgroups.borland.com> <43294df8@newsgroups.borland.com>
In-Reply-To: <43294df8@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <43295802$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126782978 145.98.201.248 (15 Sep 2005 04:16:18 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail