Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-28-2007, 06:29 AM   PM User | #1
stlboi
New Coder

 
Join Date: Dec 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
stlboi is an unknown quantity at this point
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
stlboi is offline   Reply With Quote
Old 01-28-2007, 04:31 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 01-28-2007, 05:25 PM   PM User | #3
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
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…
__________________
drums | web
rmedek is offline   Reply With Quote
Old 01-28-2007, 08:49 PM   PM User | #4
stlboi
New Coder

 
Join Date: Dec 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
stlboi is an unknown quantity at this point
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..
stlboi is offline   Reply With Quote
Old 01-28-2007, 09:13 PM   PM User | #5
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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".
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 01-28-2007, 10:59 PM   PM User | #6
stlboi
New Coder

 
Join Date: Dec 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
stlboi is an unknown quantity at this point
I'll give it a try, thank you!
stlboi is offline   Reply With Quote
Old 01-29-2007, 12:24 PM   PM User | #7
butlins
Regular Coder

 
Join Date: Aug 2006
Location: Cardiff, UK
Posts: 141
Thanks: 15
Thanked 2 Times in 2 Posts
butlins is an unknown quantity at this point
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?
butlins is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:52 AM.


Advertisement
Log in to turn off these ads.