Make HTML code show up on the web

http://robertlindsay.blogspot.com/2008/04/how-to-make-html-c ode-show-up-on.html

I think I solved it. Please feel free to read and critique the
solution.
Bob [ Di, 15 April 2008 13:07 ] [ ID #1943262 ]

Re: Make HTML code show up on the web

Bob wrote:
>
> I think I solved it.

I think you multi-posted.
http://oakroadsystems.com/genl/unice.htm#xpost

--
Berg
Bergamot [ Di, 15 April 2008 15:44 ] [ ID #1943268 ]

Re: Make HTML code show up on the web

Bob wrote:
> http://robertlindsay.blogspot.com/2008/04/how-to-make-html-c ode-show-up-on.html
>
> I think I solved it. Please feel free to read and critique the
> solution.

There wasn't a problem to solve. You just decided for some reason of
your own that a Rube Goldberg approach was better than just typing
"<" for "<" and "&" for "&".
Harlan Messinger [ Di, 15 April 2008 15:52 ] [ ID #1943270 ]

Re: Make HTML code show up on the web

On 2008-04-15, Bob wrote:
> http://robertlindsay.blogspot.com/2008/04/how-to-make-html-c ode-show-up-on.html
>
> I think I solved it. Please feel free to read and critique the
> solution.

That's a lot of trouble for something simple.

As someone else already pointed out, you can just change (using a
tool such as sed) '<' to '<' and '&' to '&'.

Alternatively, you can rename the file from file.html to file.txt
(or make a link from one name to the other).

--
Chris F.A. Johnson, webmaster <http://Woodbine-Gerrard.com>
============================================================ =======
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
cfajohnson [ Di, 15 April 2008 23:00 ] [ ID #1943276 ]

Re: Make HTML code show up on the web

On 15 Apr 2008, Bergamot <bergamot [at] visi.com> wrote:

> Bob wrote:
>>
>> I think I solved it.
>
> I think you multi-posted.
> http://oakroadsystems.com/genl/unice.htm#xpost

The last time I multi-posted, I was visiting a harem.

--
Neredbojias
http://www.neredbojias.com/
Great sights and sounds
Neredbojias [ Mi, 16 April 2008 01:36 ] [ ID #1944173 ]

Re: Make HTML code show up on the web

Scripsit Chris F.A. Johnson:

> Alternatively, you can rename the file from file.html to file.txt

That might not help in all cases.

First, the file name suffix has no magic in itself. It's the HTTP
headers that specify whether a resource is to be treated as HTML, as
plain text, or as something else. On the other hand, using ".txt"
_usually_ makes the server send a header that tells that the resource is
plain text.

Second, IE has been observed to ignore the HTTP header and treat data as
HTML, if IE "thinks" that it "looks like" HTML. This is all wrong, but
what can you do?

And does it matter? Anyone who can possibly benefit from seeing HTML
markup probably knows how to do View Source. On the other hand, HTML
markup written by someone who does odd tricks to do a simple thing and
multiposts advice on it is hardly worth copying or imitating.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
jkorpela [ Mi, 16 April 2008 09:22 ] [ ID #1944178 ]

Re: Make HTML code show up on the web

On Apr 16, 12:22 am, "Jukka K. Korpela" <jkorp... [at] cs.tut.fi> wrote:
> Scripsit Chris F.A. Johnson:
>
> > Alternatively, you can rename the file from file.html to file.txt
>
> That might not help in all cases.
>
> First, the file name suffix has no magic in itself. It's the HTTP
> headers that specify whether a resource is to be treated as HTML, as
> plain text, or as something else. On the other hand, using ".txt"
> _usually_ makes the server send a header that tells that the resource is
> plain text.
>
> Second, IE has been observed to ignore the HTTP header and treat data as
> HTML, if IE "thinks" that it "looks like" HTML. This is all wrong, but
> what can you do?
>
> And does it matter? Anyone who can possibly benefit from seeing HTML
> markup probably knows how to do View Source. On the other hand, HTML
> markup written by someone who does odd tricks to do a simple thing and
> multiposts advice on it is hardly worth copying or imitating.
>
> --
> Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/

I h
Bob [ Mi, 16 April 2008 12:15 ] [ ID #1944180 ]

Re: Make HTML code show up on the web

On Apr 16, 12:22 am, "Jukka K. Korpela" <jkorp... [at] cs.tut.fi> wrote:
> Scripsit Chris F.A. Johnson:
>
> > Alternatively, you can rename the file from file.html to file.txt
>
> That might not help in all cases.
>
> First, the file name suffix has no magic in itself. It's the HTTP
> headers that specify whether a resource is to be treated as HTML, as
> plain text, or as something else. On the other hand, using ".txt"
> _usually_ makes the server send a header that tells that the resource is
> plain text.
>
> Second, IE has been observed to ignore the HTTP header and treat data as
> HTML, if IE "thinks" that it "looks like" HTML. This is all wrong, but
> what can you do?
>
> And does it matter? Anyone who can possibly benefit from seeing HTML
> markup probably knows how to do View Source. On the other hand, HTML
> markup written by someone who does odd tricks to do a simple thing and
> multiposts advice on it is hardly worth copying or imitating.
>
> --
> Jukka K. Korpela ("Yucca")http://www.cs.tut.fi/~jkorpela/

I have to multipost. I don't have a newsreader and I got rid of my
news account. I post from Google groups so there is no way to cross
post, unless I have not figured it out yet.
Bob [ Mi, 16 April 2008 12:16 ] [ ID #1944181 ]

Re: Make HTML code show up on the web

Bob wrote:

> I have to multipost. I don't have a newsreader and I got rid of my
> news account. I post from Google groups so there is no way to cross
> post, unless I have not figured it out yet.

In my Google Groups 'new post' form, I see a field "To Newsgroups". My
guess is that that is meant to be plural. Especially since right below
that file there's a sentence saying "(Separate multiple groups with
commas)".

--
Els http://locusmeus.com/
Els [ Mi, 16 April 2008 12:35 ] [ ID #1944182 ]

Re: Make HTML code show up on the web

Scripsit Bob:

> I have to multipost.

Thank you for the clarification. Now we know that we need to kill-
file you.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
jkorpela [ Mi, 16 April 2008 16:47 ] [ ID #1944192 ]

Re: Make HTML code show up on the web

Bob wrote:
....
> I have to multipost. I don't have a newsreader and I got rid of my
> news account. I post from Google groups so there is no way to cross
> post, unless I have not figured it out yet.

You just type in the other newsgroups in the "Newsgroups" field,
separated by commas.

Nick

--
Nick Theodorakis
nick_theodorakis [at] hotmail.com
contact form:
http://theodorakis.net/contact.html
Nick Theodorakis [ Do, 17 April 2008 04:04 ] [ ID #1944920 ]
Miscellaneous » alt.html » Make HTML code show up on the web

Vorheriges Thema: a:hover span IE 6 & 7 issue
Nächstes Thema: Why doesn't FireFox expand or contract tables?