Notepad equivalent? (or, why doesn't my code work in textedit?)

Discussion in 'Web Design and Development' started by .JahJahwarrior., Jan 28, 2008.

  1. .JahJahwarrior. macrumors 6502

    Jan 1, 2007
    So...I'm trying to design a simple website for a computer course, and I'm completely new to HTML and XHTML. We learned how to use the FTP and all that on PC's.....and I can do it fine there. I got my page up and running. But I come here to my dorm to relax and decide to mess withit, and I can't get it to work. On a PC, I type in xhtml coding in Notepad, save it as a .html, and upload, and the page displays fine. I copy the source code from the page in to Text Edit (because, I saved the .html file on a jumpdrive, and when I open it on my Mac, it shows up like the webpage. I need to see code, not what the code should make the site look like), resave it with the same file name, use ClassicFTP to upload it (on a PC, I go to the FTP thing in IE, then select "open FTP in Windows Explorer" and it's so simple to drag and drop files. It's much more difficult on myMac. Why can't Mac open it up in a "my documents" type window like a PC can?!?) and when I go to the webpage, I see my code.

    Website Here

    If you click on the "photography" link, it should work fine. Click on the "products" link, and it should show code. What am I doing wrong? Or, what program will work like Notepad does on a PC?
  2. angelwatt Moderator emeritus


    Aug 16, 2005
    It's generally a bad idea to use TextEdit for HTML code. It's set as default to rich text rather than plain text. The page you're having problems with looks like this problem. There is plenty of other programs to use that are much better. Check the stickies thread in this forum for a ton of useful information to help you.
  3. reh macrumors 6502a

    Oct 24, 2003
    It's easy to change text edit to plain text mode.

    Format -> Make Plain Text

    Attached Files:

  4. riscy macrumors 6502a


    Jan 4, 2008
    Have a look at Smultron - an extremely powerful and best of all (free) text editor which does numerous programming languages
  5. AdeFowler macrumors 68020


    Aug 27, 2004
  6. Osarkon macrumors 68020


    Aug 30, 2006
    I'd recommend TextWrangler as well, it's all I use for my web coding, and it works brilliantly. :)
  7. .JahJahwarrior. thread starter macrumors 6502

    Jan 1, 2007
    Ah....that makes sense, I didn't think to look for a rich/plain text changing option. :)
  8. notjustjay macrumors 603


    Sep 19, 2003
    Canada, eh?
    Open up TextEdit's preferences and look for a default option about rendering web pages or rich text or something like that, that you should turn off (I don't have it here at work, but that's what I did at home). Then all will be well again.

Share This Page