Login | Register | FAQ
Anonymous

Using Notepad to write HTML

+ Post a reply

10 posts Page 1 of 1


Using Notepad to write HTML

by Asianxtremist » Mon Mar 07, 2011 7:31 pm

Hello everyone,

So this is my first day learning html. I have a macbook pro with OS X version 10.6.5 installed. I opted to use notepad to write html with. Yet every time I want to save a notepad file I run into problems.

Say I write a bit of basic html with some elements. If I save it as a HTM file I find that I cannot later edit it. So I figured I could simply save the file as a ".txt" file and a copy as the ".htm" file. That way I have the txt original if anything goes wrong. However in order to save the .txt file I have to change to plaintext. All fine so far. But when I try to go back into the plain text document it opens with the text formatted to how my html file should look. So I convert back to plain text and all my tags are gone.....

HELP!!!

Sorry to sound stupid but I literally decided to take this up yesterday and know nothing about it.

I am only on tutorial five, but I cannot practice and try different scenarios if I am unable to edit them after making any mistakes.
User avatar

Asianxtremist

  • Posts: 10
  • Joined: Mon Mar 07, 2011 7:17 pm

Re: Using Notepad to write HTML

by HTML.net » Mon Mar 07, 2011 7:36 pm

Have a look at this link: http://www.askdavetaylor.com/how_do_i_s ... tedit.html

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1185
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: Using Notepad to write HTML

by Asianxtremist » Mon Mar 07, 2011 7:51 pm

Thanx for that. I tried it. It saves my file as a html file which is fine.

But going back into it - it opens without plain text, so i cannot edit the plaintext version - tags, elements, etc.

Am I missing sth here?
User avatar

Asianxtremist

  • Posts: 10
  • Joined: Mon Mar 07, 2011 7:17 pm

Re: Using Notepad to write HTML

by HTML.net » Mon Mar 07, 2011 8:32 pm

And you are using TextEdit?

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1185
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: Using Notepad to write HTML

by Asianxtremist » Mon Mar 07, 2011 8:37 pm

Yeah I am.

Probably so obvious to some that it didnt cross my mind but:

Go to:
Textedit > Preferences...
select the "Open and Save" tab and tick "ignore rich text commands in html files"
next time you open it, it's gonna open as plain text
let me know if this works

That sorted it!

Hope this helps anyone who has this problem in the future.
User avatar

Asianxtremist

  • Posts: 10
  • Joined: Mon Mar 07, 2011 7:17 pm

Re: Using Notepad to write HTML

by Asianxtremist » Mon Mar 07, 2011 8:38 pm

Oh and thanx Andreas!!!!
User avatar

Asianxtremist

  • Posts: 10
  • Joined: Mon Mar 07, 2011 7:17 pm

Re: Using Notepad to write HTML

by HTML.net » Mon Mar 07, 2011 8:42 pm

You are welcome. Gkad it worked out for you!

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1185
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.

Re: Using Notepad to write HTML

by adamknott » Fri Mar 11, 2011 1:42 am

Thanks for the great input. I was having the same problem with my Mac and this corrected it.
User avatar

adamknott

  • Posts: 1
  • Joined: Fri Mar 11, 2011 1:20 am

Re: Using Notepad to write HTML

by Mark Smith » Sat Mar 12, 2011 8:03 am

I never tried doing html codes in a macbook...Is there a big difference?
User avatar

Mark Smith

  • Posts: 1
  • Joined: Sat Mar 12, 2011 7:52 am
  • Location: United States

Re: Using Notepad to write HTML

by HTML.net » Sat Mar 12, 2011 9:53 am

Mark Smith wrote:I never tried doing html codes in a macbook...Is there a big difference?


There is no difference. You should you just use Textedit (Mac) instead of Notepad (Windows).

- Andreas, HTML.net
User avatar

HTML.net
Site Admin

  • Posts: 1185
  • Joined: Sat Sep 11, 2010 11:24 am
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.


+ Post a reply

Page 1 of 1

?>