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


    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. macrumors 603

    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

    Yes, it does.
  4. macrumors 68040


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


    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