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

grosslyclever

macrumors member
Original poster
Jun 25, 2009
94
0
Hi,

I have created an HTML document with code, but when I open it in Safari or firefox it shows the code instead of what it's supposed to show.

Note: I tried opening it in windows and it works fine.

Thanks in advance,
-GC
 
Does your file have the ".html" extension?

Does the file start with <html>?

Without more details of exactly what your file consists of, there's no way to tell what the problem might be.
 
Easier to help if we know what you have, can you post the document here so we can look at it?
 
Sounds like you used TextEdit to write the code and it got saved as rich text rather than plain text. Make sure to switch to plaint text mode, or better yet, use a real text editor. TextWrangler is a good free one.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.