Click here to get back home

Re: Make HTML code show up on the web

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Re: Make HTML code show up on the web Chris Morris 04-15-2008
Posted by Chris Morris on April 15, 2008, 8:06 am
Please log in for more thread options
> On Apr 15, 4:32 am, Harlan Messinger
> > [escape the HTML]
>
> I know, but I hate that. I wanted to try something different.

How do you deal with displaying </textarea> in HTML code with this
method?

Why do you hate escaping < as &lt; - if it's because it's a pain to
write every time, then use a method for generating the HTML code that
does it automatically.

Escaping also has the advantage that you can do more with the
displayed code. Example:

<p>An image is displayed with &lt;img src="<var>url</var>"
alt="<var>alternative text</var>" <span class="optional">width="<var>w</var>"
height="<var>h</var>"</span>&gt;.</p>

(While not at all necessary, I've also escaped > to &gt; in the
displayed code to make it slightly clearer)

--
Chris

Posted by dorayme on April 15, 2008, 8:41 pm
Please log in for more thread options

> > On Apr 15, 4:32 am, Harlan Messinger
> > > [escape the HTML]
> >
> > I know, but I hate that. I wanted to try something different.
>
> How do you deal with displaying </textarea> in HTML code with this
> method?
>
> Why do you hate escaping < as &lt; - if it's because it's a pain to
> write every time, then use a method for generating the HTML code that
> does it automatically.

In any good text editor you can save a replacement or GREP pattern and
tell the editor to replace all '<' and '>' s with '&lt;' and '&gt;' for
the selected (highlighted) text. Super quick.

--
dorayme

Similar ThreadsPosted
How to make html ignore code that is part of text? September 7, 2004, 8:38 am
how to make my website show in google when certain keywords searched June 25, 2006, 6:50 pm
How to make frame based web site show in google search July 5, 2006, 6:59 pm
Show image top left in html page, how can I do that ? June 11, 2006, 8:59 am
Share common HTML code among different HTML files? May 14, 2005, 11:05 pm
How to make interactive HTML tutorials. July 9, 2005, 2:13 am
changes in HTML code are ignored by the browser (IE6) October 7, 2004, 11:56 am
Self-modifying HTML code? August 17, 2006, 11:53 am
How to make font size constant in HTML November 15, 2004, 10:59 pm
Showing html code in a web page April 3, 2005, 5:56 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap