Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

TextEdit keeps saving .html file as .txt

As you know, you don't "save as..." files in Lion - Lion-compatible applications save a copy, and you don't get to specify what extension you want. So... I have all the proper preferences checked for TextEdit to properly open and manage .html documents ("ignore rich text commands in html files" is checked, "add .txt extension to plain text files" is unchecked. But every time I edit and then save an html source file, TextEdit changes the extension from .html to .txt. I've tried closing and opening the file again, both from the Finder and from TextEdit, and I see the same behavior. I can't figure out any way to keep the .html extension from within the appication - I always have to find the file in the Finder and manually change the extension back to .html after every time I edit it. Does anyone know how to fix this?

Posted on Aug 21, 2011 9:53 PM

Reply
Question marked as Best reply

Posted on Aug 21, 2011 10:25 PM

Edit your document in rich text. When you first save it there will be pull-down menu to choose html. Saves after that behave properly and don't eat the html extension. For some reason TextEdit persists in changing html documents done in plain text to a txt extension.

16 replies

Feb 18, 2013 7:58 AM in response to Clarissa83

I have TextEdit 1.8 and am frustrated that you can no longer Save As.... I typically use TextEdit to put up a new page on my website in order to display a work in progress. Formerly I would simply open up the last work-in-progress page, ignoring Rich Text commands, and save it with the new name, information, and image source. Easy to do and I had a new web page. Now Save As... is no longer an option; I have to make a copy and then rename the copy. But after I have entered all the changes for the new page it doesn't become an htm document; even if I load it onto my website it still shows as text rather than reverting to htm format. It took me over an hour to figure out a workaround and I'm still not sure what I did that worked.

TextEdit keeps saving .html file as .txt

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