Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Dec 2006
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mac saves HTML file?

    I use textedit on my macbook to edit all my html. Thing is, when I save the .html file for later editing, when I open it back up the next day, it's actually just links n things. How can I put it back to view just the coding? Any tips?

    Thanks! Hope this is the right folder.


    --Tim

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,702
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    I'm not sure what you mean by "links 'n' things"? Do you mean if you open it with TextEdit you see actual links and no HTML? You may have rich text formatting enabled instead of plain text?

    To disable rich text formatting go to "Format > Make Plain Text" or press Shift + Command (Apple key) + T.

  • #3
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    If you mean it's not opening Text Edit but rather a browser, right click on the file icon and choose "get info" from the context menu. Look for "Open with:" and change it to Text Edit or whatever you want it to open with, then select "Change All…". This will change the preference of OSX to use your program rather than its default to open a .html file.

    Hope this helps…

  • #4
    New Coder
    Join Date
    Dec 2006
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the tips, but nothing worked.

    To give you a better feel of what is happening, I am creating a .txt file with plain text loaded with HTML. I save the file on my desktop as a .txt. I go to open it back up and this is what I see instead of HTML:



    When I want to see this, this is what I originally saved:



    Please help.

    Instead of just opening the .txt and going straight into editing the HTML, I have to make it into an .html, view the page and copy/paste the source to re-edit the page. It gets annoying when I just need to make quick fixes.

    Thanks!


    --Tim
    Last edited by stlboi; 01-28-2007 at 08:53 PM.

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,702
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Indeed, it does open the document in rich text format. But I've found the solution. In the preferences go to "Open and Save" and check "Ignore rich text commands in HTML files".

  • #6
    New Coder
    Join Date
    Dec 2006
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'll give it a try, thank you!

  • #7
    Regular Coder
    Join Date
    Aug 2006
    Location
    Cardiff, UK
    Posts
    141
    Thanks
    15
    Thanked 2 Times in 2 Posts
    I think the problem is that Textedit (despite its name) uses rich text format as its native file format. It's more of a heavily cut down word processing application than a real text editor, and tries to be 'helpful' when opening up HTML by displaying a rendered version rather than the code itself.

    You'd be better off with TextWrangler by BBEdit if you want a text editor that's free to download. If you're doing heavy-duty HTML, then the full BBEdit application will be well worth the money.
    If anyone asks my boss, this counts as work, okay?


  •  

    Posting Permissions

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