Results 1 to 13 of 13
  1. #1
    Creating simple HTML files in Mac OS X with TextEdit...

    Member Since
    Aug 05, 2008
    Posts
    29
    Creating simple HTML files in Mac OS X with TextEdit...
    In Windows, I was able to pull up Notepad, input some raw HTML code, and save the file with the .htm (or .html) extension. And I had an HTML file that would open in my browser. I CANNOT get this to work in Mac OS X Snow Leopard in TextEdit, even though I've consulted something like 3-4 online tutorials that purport to show you how to do just that. The file ALWAYS opens back up as a text file (albeit with some formatting...thanks a LOT, TextEdit)! Any suggestions? Is there an application I can download that will allow me to do things like this? I'm desperate

  2. #2
    Creating simple HTML files in Mac OS X with TextEdit...
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    TextEdit differs from Notepad in one significant way - Notepad is plain text, TextEdit is rich text. When you save a file as rich text, the file is saved with much more content than you put in your document. This content defines how the document looks - you'll notice that in TextEdit, you can change the font, change colours, etc. This is because it is rich text and not plain text which is, well, just plain.

    You can have TextEdit work in plain text mode if you'd like. Go to Format > Make Plain Text. When the file is saved, it will save as plain text, much like Notepad does.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  3. #3
    Creating simple HTML files in Mac OS X with TextEdit...

    Member Since
    Aug 05, 2008
    Posts
    29
    Quote Originally Posted by vansmith View Post
    TextEdit differs from Notepad in one significant way - Notepad is plain text, TextEdit is rich text. When you save a file as rich text, the file is saved with much more content than you put in your document. This content defines how the document looks - you'll notice that in TextEdit, you can change the font, change colours, etc. This is because it is rich text and not plain text which is, well, just plain.

    You can have TextEdit work in plain text mode if you'd like. Go to Format > Make Plain Text. When the file is saved, it will save as plain text, much like Notepad does.
    Thanks for the response. I'll try to work with that.

    I've just noticed that another problem is that if I try to do plain-text editing of existing HTML files on my Mac, right-clicking and opening them with TextEdit fails to pull up the HTML code - it just shows me a crappy version of the website. Any way around *that*?

  4. #4
    Creating simple HTML files in Mac OS X with TextEdit...

    Member Since
    Mar 30, 2004
    Location
    USA
    Posts
    4,744
    Specs:
    12" Apple PowerBook G4 (1.5GHz)
    Yes. Don't ever, ever, ever use TextEdit for anything, ever.

    Get a good text editor, like TextWrangler, for plain text editing.

  5. #5
    Creating simple HTML files in Mac OS X with TextEdit...
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    There are quite a few HTML editors for the Mac. Even general programmer's editors like TextWrangler will do the job if you like editors that stay out of your way. One that is quite popular is TextMate as well - I don't use it but many people will swear by it.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  6. #6
    Creating simple HTML files in Mac OS X with TextEdit...
    chscag's Avatar
    Member Since
    Jan 23, 2008
    Location
    Fort Worth, Texas
    Posts
    45,191
    Specs:
    27" iMac i5, 3.2 GHz, iPad 3, iPhone 5c, iPhone 6+, 3 iPods, Yosemite
    I think what confuses most switchers is the name "TextEdit" as it assumes it's a plain text editor similar to the Windows Notepad. While actually TextEdit is really more like the Windows "WordPad" which is also a Rich Text Document editor.

  7. #7
    Creating simple HTML files in Mac OS X with TextEdit...

    Member Since
    Mar 30, 2004
    Location
    USA
    Posts
    4,744
    Specs:
    12" Apple PowerBook G4 (1.5GHz)
    Quote Originally Posted by chscag View Post
    I think what confuses most switchers is the name "TextEdit" as it assumes it's a plain text editor similar to the Windows Notepad. While actually TextEdit is really more like the Windows "WordPad" which is also a Rich Text Document editor.
    It's actually a lousy text editor, a pathetic word processor, and a worthless WYSIWYG HTML editor...all in one. Very likely the worst application Apple...or, rather, NeXT...has ever designed.

    Jack of all trades, useful at none.

  8. #8
    Creating simple HTML files in Mac OS X with TextEdit...
    Randy B. Singer's Avatar
    Member Since
    Feb 01, 2011
    Location
    Sacramento, California
    Posts
    608
    Quote Originally Posted by AxiomOfChoice View Post
    In Windows, I was able to pull up Notepad, input some raw HTML code, and save the file with the .htm (or .html) extension.
    If you are working with HTML, you would do well to get a better text editor, or, even better, a text editor that includes lots of features to make HTML coding go faster.

    A better, yet still free text editor:

    TextWrangler (free)
    Bare Bones Software | TextWrangler

    This one is a longtime favorite of hand coders:

    BBEdit ($100)
    Bare Bones Software | BBEdit 9

    This is my personal favorite for hand coding HTML:

    PageSpinner ($30)
    PageSpinner - the HTML editor for Mac OS X

    Other choices:

    CODA ($99)
    Panic - Coda - One-Window Web Development for Mac OS X

    ESPRESSO ($80)
    MacRabbit - Espresso

    However, you might want to use a WYSIWYG Web site creation program instead, or just occasionally for quick jobs. There are a bunch of these for the Macintosh; all of them are good. But here is my favorite, and it is FREE:

    KOMPOZER (free and open source)
    http://kompozer.net/
    Kompozer is a very impressive application. It is more like DreamWeaver than iWeb, but it is very easy to use. In fact, it is almost as powerful as a professional-level Web site creation tool. There are several free tutorials to learn how to use the program, and it isn't hard to learn to use. You can easily migrate your existing Web site(s) to Kompozer because it doesn't use a proprietary format, it will simply open your HTML-based Web site.

    FREE KompoZer tutorials:

    - KompoZer User Guide
    KompoZer User Guide - Home

    - How to Design and Publish Your Website with KompoZer
    How to Design and Publish Your Website with KompoZer (thesitewizard.com)

    - KompoZer Tutorial 2: How to Add Images, Change Fonts and Colours
    Tutorial on designing and publishing your web pages with KompoZer, a free standalone WYSIWYG web editor.
    KompoZer Tutorial 2: How to Add Images, Change Fonts and Colours and Create Links (thesitewizard.com)

    - Other free KompoZer tutorials
    thesitewizard.com: Website design, promotion, CGI, PHP, JavaScript scripting, and revenue earning.
    Scroll down to KompoZer Tutorials

    - KompoZer Video Tutorials
    YouTube - kompozer tutorial


    ___________________________________________

    Randy B. Singer
    Co-author of The Macintosh Bible (4th, 5th, and 6th editions)

    Macintosh OS X Routine Maintenance
    OS X Maintenance And Troubleshooting
    ___________________________________________

  9. #9
    Creating simple HTML files in Mac OS X with TextEdit...

    Member Since
    Mar 30, 2012
    Posts
    1
    Warning -- don't ever tell this useless program to save in plain text after it stupidly opens like a rich text file. You will lose everything, like the javascript you just spent an hour working on

    slightly off-topic, I don't suppose mac saves versions of files you can get at after it does this? I'm a new (and fairly frustrated) mac user after years of Linux and Windows.

  10. #10
    Creating simple HTML files in Mac OS X with TextEdit...
    louishen's Avatar
    Member Since
    Oct 22, 2007
    Location
    London
    Posts
    8,968
    Specs:
    Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
    See above, there a links to text Wrangler which is a great html and javascript editor
    Member of the Month September 2008 & August 2012 | Found advice useful? use the rep system

  11. #11
    Creating simple HTML files in Mac OS X with TextEdit...
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    If you're using Lion, you can browse previous versions of the current file. Click the little down arrow next to the file name in the titlebar. You'll have to mouse over the file name to see it. When you do, select "Browse All Versions..."
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  12. #12
    Creating simple HTML files in Mac OS X with TextEdit...
    chas_m's Avatar
    Member Since
    Jan 22, 2010
    Location
    Victoria, BC
    Posts
    18,933
    Specs:
    Mid-2012 MBP (16GB, 1TB HD), Monoprice 24-inch second monitor, iPhone 5s 32GB, iPad Air 2 64GB
    Quote Originally Posted by vansmith View Post
    If you're using Lion, you can browse previous versions of the current file. Click the little down arrow next to the file name in the titlebar. You'll have to mouse over the file name to see it. When you do, select "Browse All Versions..."
    Yes, let's see TextWrangler manage THAT and then I'll be impressed.

  13. #13
    Creating simple HTML files in Mac OS X with TextEdit...
    Randy B. Singer's Avatar
    Member Since
    Feb 01, 2011
    Location
    Sacramento, California
    Posts
    608
    Randy B. Singer

    Mac OS X Routine Maintenance http://www.macattorney.com/ts.html

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Trouble Editing HTML Document With TextEdit
    By YourAdrenaline in forum OS X - Operating System
    Replies: 2
    Last Post: 07-11-2013, 02:25 PM
  2. html problem - TextEdit
    By hello1000 in forum OS X - Apps and Games
    Replies: 1
    Last Post: 02-24-2013, 02:31 AM
  3. Opening Local HTML files - render HTML (not display as text)
    By Gator626 in forum OS X - Operating System
    Replies: 6
    Last Post: 11-01-2009, 08:00 PM
  4. Replies: 5
    Last Post: 09-16-2009, 08:30 AM
  5. Saving from Textedit as .html
    By Oijl in forum Web Design and Hosting
    Replies: 8
    Last Post: 12-02-2008, 06:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •