I recently created a .html file in TextEdit on my Mac (Mac OS X 10.5.8). I then opened that .html file in my browser and it showed the page I created just fine. I closed the .html file and TextEdit and refreshed the page. It still worked fine. Then I opened up the .html file in TextEdit again and all the text was gone (the page in the browser still works fine though). Where did all the text go?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
migrated from stackoverflow.com Feb 26 '10 at 21:23
|
Try selecting "Ignore rich text commands in HTML files" in the Open/Save section of TextEdit's preferences window. Edit: after making sure this option is set, you'll likely need to re-open the file. |
|||
|
|
|
TextEdit was trying to render the page and present it rather than letting you edit the source. You should consider using a real editor. |
|||||
|
|
TextEdit is converting the HTML to rich text and displaying it as it is marked up by the tags. TextEdit is considered a rich text editor and not suitable for HTML or coding use. You should use a raw text editor like TextWrangler or TextMate if you plan on doing coding or html work. |
|||
|
|