Opening HTML document on a mac problem...

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

  1. macrumors member

    Joined:
    Jun 25, 2009
    #1
    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
     
  2. macrumors 603

    Joined:
    Aug 9, 2009
    #2
    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. thread starter macrumors member

    Joined:
    Jun 25, 2009
    #3
    Yes, it does.
     
  4. macrumors 68040

    DewGuy1999

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

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5
    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