SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    reopening html in text edit

    Hi everyone. I created an html on text edit, saved it, and closed it. I'm trying to reopen it, I cannot see the texts that I've written because the text edit screen is coming up all black. I don't know why's that happening and if anybody can help out, please...
    I'm new to this.

  2. #2
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    "Text edit" is a bit vague -- What editor are you using? Do you mean the editor that comes with a Mac by default? If so that's all one word, and can often mangle trying to write HTML with it...

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    Hi jerrizzy. Welcome to SitePoint.

    TextEdit doesn't display HTML by default, since it's a rich text editor. So firstly, with TextEdit launched, go to TextEdit > Preferences. At the top of the Preferences box that then opens, there are two tabs—"New Document" and "Open and Save".

    Under New Document, choose Format: Plain text.

    Under Open and Save, choose "ignore rich text commands in HTML files", deselect "Add .txt extension to plain text files" (and manually type .html as an extension when you create and save a file).

    Also, under HTML Saving Options, choose HTML 4.01 Strict as the Document type and Unicode (UTF-8) as the Encoding. Also make sure "Preserve white space" is selected.

    That should fix things.

  4. #4
    SitePoint Member
    Join Date
    Feb 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, you guys are number 1. Learn something new, Problem fixed. Thank you guys, beers on me.


Bookmarks

Posting Permissions

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