PDA

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




.JahJahwarrior.
Jan 28, 2008, 11:22 PM
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 (http://pegasus.cc.ucf.edu/~mi777485)

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?



angelwatt
Jan 29, 2008, 07:23 AM
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.

reh
Jan 29, 2008, 08:03 AM
It's easy to change text edit to plain text mode.

Format -> Make Plain Text

riscy
Jan 29, 2008, 08:08 AM
Have a look at Smultron (http://smultron.sourceforge.net/) - an extremely powerful and best of all (free) text editor which does numerous programming languages

Southernboy
Jan 29, 2008, 08:12 AM
TextWrangler (http://www.barebones.com/products/textwrangler/) is also free and surprisingly powerful.

Osarkon
Jan 29, 2008, 08:17 AM
TextWrangler (http://www.barebones.com/products/textwrangler/) is also free and surprisingly powerful.

I'd recommend TextWrangler as well, it's all I use for my web coding, and it works brilliantly. :)

.JahJahwarrior.
Jan 29, 2008, 09:22 AM
Ah....that makes sense, I didn't think to look for a rich/plain text changing option. :)

notjustjay
Jan 29, 2008, 12:43 PM
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.