Page 1 of 1
Conversion of Txt to HTML
Posted: Sun Oct 12, 2003 4:56 pm
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
Posted: Sun Oct 12, 2003 5:35 pm
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.
Posted: Sun Oct 12, 2003 7:05 pm
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
Posted: Mon Oct 13, 2003 4:18 pm
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
Posted: Mon Oct 13, 2003 6:26 pm
by insitus
Hi Keith MacDonald,
That worked nicely.
Thank you again.
Satoshi