View Full Version : Mac saves HTML file?
01-28-2007, 06:29 AM
I use textedit on my macbook to edit all my html. Thing is, when I save the .html file for later editing, when I open it back up the next day, it's actually just links n things. How can I put it back to view just the coding? Any tips?
Thanks! Hope this is the right folder.
01-28-2007, 04:31 PM
I'm not sure what you mean by "links 'n' things"? Do you mean if you open it with TextEdit you see actual links and no HTML? You may have rich text formatting enabled instead of plain text?
To disable rich text formatting go to "Format > Make Plain Text" or press Shift + Command (Apple key) + T.
01-28-2007, 05:25 PM
If you mean it's not opening Text Edit but rather a browser, right click on the file icon and choose "get info" from the context menu. Look for "Open with:" and change it to Text Edit or whatever you want it to open with, then select "Change All…". This will change the preference of OSX to use your program rather than its default to open a .html file.
Hope this helps…
01-28-2007, 08:49 PM
Thanks for the tips, but nothing worked.
To give you a better feel of what is happening, I am creating a .txt file with plain text loaded with HTML. I save the file on my desktop as a .txt. I go to open it back up and this is what I see instead of HTML:
When I want to see this, this is what I originally saved:
Instead of just opening the .txt and going straight into editing the HTML, I have to make it into an .html, view the page and copy/paste the source to re-edit the page. It gets annoying when I just need to make quick fixes.
01-28-2007, 09:13 PM
Indeed, it does open the document in rich text format. But I've found the solution. In the preferences go to "Open and Save" and check "Ignore rich text commands in HTML files".
01-28-2007, 10:59 PM
I'll give it a try, thank you!
01-29-2007, 12:24 PM
I think the problem is that Textedit (despite its name) uses rich text format as its native file format. It's more of a heavily cut down word processing application than a real text editor, and tries to be 'helpful' when opening up HTML by displaying a rendered version rather than the code itself.
You'd be better off with TextWrangler (http://www.barebones.com/products/textwrangler/index.shtml) by BBEdit if you want a text editor that's free to download. If you're doing heavy-duty HTML, then the full BBEdit (http://www.barebones.com/products/bbedit/index.shtml) application will be well worth the money.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.