Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CaptainCaveMann

macrumors 68000
Original poster
Oct 5, 2004
1,518
0
First off im using Tiger if that makes a difference. Anyway, im trying to design a website in text edit using simple html code, and when i want to preview it in safari, i save the document as html then i open it using safari and it wont show up! All i see in the browser window is my html tags. This is driving me crazy cause i cant figure out what im doing wrong. Ahhhh! :confused:
 
Use Format->Make plain text in TextEdit before you save the html file.

You still want to add the .html extension when you save the file, but this will give you actual HTML source code instead of a formatted document that happens to look like HTML.

This will make more sense after you try it :)


---

[ Edit: I forgot another thing you'll need to know so that you can open HTML files and see the source code. In TextEdit preferences, under the Open and Save tab, check "when opening a file: ignore rich text commands in HTML files" ]
 
Go into TextEdit preferences and check the option that says to save in plain text (and not in rich text). I had the same problem a couple weeks ago and it ate my lunch for about 3 hours. Exact same scenario - I was writing html code.

Todd
 
Tried a different editor?

As others have mentioned, if you're going to use TextEdit, use it in Plain Text mode.

However, if you're going to be writing a fair amount HTML I recommend an editor that will do syntax highlighting and other helpful functions.

Smultron, even though its icons are awful, was always a fine editor for me. I've since upgraded to TextMate, but Smultron is a solid freeware option.

http://smultron.sourceforge.net
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.