登录 | 注册 | FAQ
Anonymous

code/tags showing

+ 发表回复

9 篇帖子 分页: 1 / 1


code/tags showing

beelzebomb » 周日 9月 26, 2010 5:59 pm

Hi
I've got as far as lesson 4 in html tutorial but the website shows up with all the coding - just as it looked in textedit - why?

I'm using a macbook, not a pc, so saving the text file i am saving it as an .html file, calling it "something.htm"
头像

beelzebomb

  • 帖子: 5
  • 注册: 周日 9月 26, 2010 5:50 pm

Re: code/tags showing

HTML.net » 周日 9月 26, 2010 7:58 pm

Also, make sure you choose "All Files" in the "Save as type" box in Notepad when you save the document. Very important.
头像

HTML.net
Site Admin

  • 帖子: 1194
  • 注册: 周六 9月 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: code/tags showing

beelzebomb » 周日 9月 26, 2010 8:14 pm

HTML.net 写道:Also, make sure you choose "All Files" in the "Save as type" box in Notepad when you save the document. Very important.


Hi,
I don't seem to have that choice with a mac - there's no "all files" choice as far as I can see, i only have a choice of rich text files etc etc & html..
头像

beelzebomb

  • 帖子: 5
  • 注册: 周日 9月 26, 2010 5:50 pm

Re: code/tags showing

beelzebomb » 周日 9月 26, 2010 9:15 pm

I'm afraid I really don't have an "all files" option in textedit, i see a "web archive" option but no "all files" !
头像

beelzebomb

  • 帖子: 5
  • 注册: 周日 9月 26, 2010 5:50 pm

Re: code/tags showing

beelzebomb » 周日 9月 26, 2010 10:22 pm

ok, half sorted - changed default to plain text, then saved as unicode (once in plain text there's no html "save as" option) - this opens a proper website - but now with the title missing!

Here's the text I wrote:

<html>

<head>
<title>my first ever website</title>
</head>

<body>
<p>well well well - a long time coming!</p>
</body>

</html>

In the webpage I now only see - "well well well - a long time coming!"

Bit of a stuttering start for me this...!
头像

beelzebomb

  • 帖子: 5
  • 注册: 周日 9月 26, 2010 5:50 pm

Re: code/tags showing

HTML.net » 周一 9月 27, 2010 7:29 am

Sorry, I didn't notice you where on a Mac. Glad you made it work - stubbornness is a good when making websites :)

For others this link may be a good help: http://www.askdavetaylor.com/how_do_i_s ... tedit.html

- Andreas, HTML.net
头像

HTML.net
Site Admin

  • 帖子: 1194
  • 注册: 周六 9月 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: code/tags showing

beelzebomb » 周一 9月 27, 2010 8:58 pm

Thanks, a perfect helpful link!
头像

beelzebomb

  • 帖子: 5
  • 注册: 周日 9月 26, 2010 5:50 pm

Re: code/tags showing

jasikapetro » 周五 10月 08, 2010 11:25 am

Its simple enough, you just need to place the word code surrounde by square brackets [ ] at the start of your code and at the end type /code surrounded by square brackets []
['code]
your code here
[/code]
头像

jasikapetro

  • 帖子: 4
  • 注册: 周五 10月 08, 2010 10:48 am

Re: code/tags showing

vanopeli@att.net » 周六 10月 16, 2010 8:13 pm

HTML.net 写道:Also, make sure you choose "All Files" in the "Save as type" box in Notepad when you save the document. Very important.




Mac doesn't have Notepad. I'm having the same problem with my Mac, the TextEdit is the editor, and does not show an all files option.
头像

vanopeli@att.net

  • 帖子: 2
  • 注册: 周六 10月 16, 2010 7:14 pm


+ 发表回复

分页: 1 / 1