trying to open .html file in safari

Any help much appreciated

When i save my file in text edit as: name.html.txt it opens as a blank page in safari (using open file)!!!!!!
What am I doing wrong?????

Then when i return to the file in text edit it opens as it should in safari, like a web page.
How do I get back to the code that I wrote???????

thanks



ibook g4 Mac OS X (10.3.9)

Posted on Nov 29, 2005 2:18 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 29, 2005 4:43 PM

Under 'New Document' in TextEdit's Preferences menu, choose 'Plain Text' as the format.

Under 'Open and Save' select 'Ignore rich text commands in HTML files'.

Now open the the file in question, go the 'Format' menu, and select the 'Make Plain Text' option.

..k
12 replies

Nov 29, 2005 3:46 PM in response to jessehogie

OK I've removed the .txt and only have .html

when i try to open file in safai this is what I get:

{\rtf1\mac\ansicpg10000\cocoartf102 {\fonttbl\f0\fswiss\fcharset77 Helvetica;} {\colortbl;\red255\green255\blue255;} \margl1440\margr1440\vieww13060\viewh12520\viewkind0 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx61 60\tx6720\ql\qnatural \f0\fs34 \cf0 \ \ \ \ \ \ \ \

there's something else that I just can't figure out...... also when I'm saving in text edit its adding a .rft which I've replaced with .html


thanks

Nov 29, 2005 5:59 PM in response to dee27

Open Preferences in TextEdit. Under "New Document" check off "Plain Text" under Format. Under "Open and Save" make sure "Add '.txt' extension to plain text files" is unchecked.

New files will be in plain text and when you save them you can use any extension you want.

To change an existing rtf file to plain text. Press Command-A to select everything in the file and then go to the Format menu and choose "Make Plain Text". Save the file.

Having an htm(l) extension is as much for human convenience as it is for a browser. Having an html extension will allow a file to be loaded into a browser by default, but if you open a file, regardless of extension, using "Open File" in a browser, then if it is properly formated html code, the browser will render it as a web page.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

trying to open .html file in safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.