Opening HTML document on a mac problem...

Discussion in 'Mac Programming' started by grosslyclever, Nov 4, 2009.

  1. grosslyclever macrumors member

    Jun 25, 2009

    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,
  2. chown33 macrumors 604

    Aug 9, 2009
    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.
  3. grosslyclever thread starter macrumors member

    Jun 25, 2009
    Yes, it does.
  4. DewGuy1999 macrumors 68040


    Jan 25, 2009
    Easier to help if we know what you have, can you post the document here so we can look at it?
  5. angelwatt Moderator emeritus


    Aug 16, 2005
    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.

Share This Page