Conversion of Txt to HTML

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
insitus
Posts: 63
Joined: Sat Sep 13, 2003 10:47 pm

Conversion of Txt to HTML

Post by insitus »

I am wondering whether there is a macro which is the opposite of "Strig Tags" to convert simple txt files into HTML files. If not, is there an easy way to do so with TextPad? Satoshi
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

When you do Save As, select the File Type of HTML.

If it is pure simple text, then you can just save the file as *.htm and it can be displayed as a web page. Tags are not needed.

Many other programs also provide the option to save pages in HTML format. They should provide whatever tags are needed for tables, line breaks, fonts, colors, etc.
Hope this was helpful.............good luck,
Bob
insitus
Posts: 63
Joined: Sat Sep 13, 2003 10:47 pm

Post by insitus »

I tried with a simple text files containg a few paragraphs. Yes. Indeed I could save it as html but it only created one paragraph. Since the saved html does not contain a single tag, I won't call it html file. Do you?
Satoshi
User avatar
bbadmin
Site Admin
Posts: 821
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post by bbadmin »

To save any document as an HTML file, with syntax highlighting preserved, select all, then choose Copy other / As a HTML Page, from the Edit menu. Paste this into a new document and save it as a .html file.

Keith MacDonald
Helios Software Solutions
insitus
Posts: 63
Joined: Sat Sep 13, 2003 10:47 pm

Post by insitus »

Hi Keith MacDonald,

That worked nicely.
Thank you again.

Satoshi
Post Reply