1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Opening HTML document on a mac problem...

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

  1. macrumors member

    #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

    #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. macrumors member

    #3
    Yes, it does.
     
  4. macrumors 68040

    DewGuy1999

    #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

    #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