PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.html > Make HTML code show up on the web
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Make HTML code show up on the web

Réponse
 
LinkBack Outils de la discussion
Vieux 15/04/2008, 12h07   #1 (permalink)
Bob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Make HTML code show up on the web

http://robertlindsay.blogspot.com/20...how-up-on.html
  Réponse avec citation
Vieux 15/04/2008, 12h32   #2 (permalink)
Harlan Messinger
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Make HTML code show up on the web

Bob wrote:
> http://robertlindsay.blogspot.com/20...how-up-on.html


You seem to have missed the built-in solution that exists for this. All
you have to do is substitute "<" (including both the ampersand and
the semicolon) for the less-than ("<") at the beginning of each tag.
Likewise, if you want something like "&lt;" to appear like that on your
page as such instead of as "<", write it as "&amp;lt;" instead. This is
called "escaping" characters that have a special significance when you
want to display them in a non-special way.
  Réponse avec citation
Vieux 15/04/2008, 12h39   #3 (permalink)
Bob
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Make HTML code show up on the web

I know, but I hate that. I wanted to try something different.

On Apr 15, 4:32 am, Harlan Messinger
<hmessinger.removet...@comcast.net> wrote:
> Bob wrote:
> >http://robertlindsay.blogspot.com/20...tml-code-show-...

>
> You seem to have missed the built-in solution that exists for this. All
> you have to do is substitute "&lt;" (including both the ampersand and
> the semicolon) for the less-than ("<") at the beginning of each tag.
> Likewise, if you want something like "&lt;" to appear like that on your
> page as such instead of as "<", write it as "&amp;lt;" instead. This is
> called "escaping" characters that have a special significance when you
> want to display them in a non-special way.


  Réponse avec citation
Vieux 15/04/2008, 13h06   #4 (permalink)
Chris Morris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Make HTML code show up on the web

Bob <lindsay.robert@gmail.com> writes:
> On Apr 15, 4:32 am, Harlan Messinger
> <hmessinger.removet...@comcast.net> wrote:
> > [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
  Réponse avec citation
Vieux 15/04/2008, 13h44   #5 (permalink)
Andy Dingley
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Make HTML code show up on the web

On 15 Apr, 12:07, Bob <lindsay.rob...@gmail.com> wrote:
> http://robertlindsay.blogspot.com/20...tml-code-show-...


That's not about the web, it's about how to post through Blogspot.

As a web technique, where you have direct control over your markup
(even WYSIWYG), it's inappropriate. Badly so. In fairness to the
original author, that's not what he's suggesting it for anyway.
  Réponse avec citation
Vieux 15/04/2008, 13h44   #6 (permalink)
Harlan Messinger
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Make HTML code show up on the web

Bob wrote:
[top-posting adjusted]
> On Apr 15, 4:32 am, Harlan Messinger
> <hmessinger.removet...@comcast.net> wrote:
>> Bob wrote:
>>> http://robertlindsay.blogspot.com/20...tml-code-show-...

>> You seem to have missed the built-in solution that exists for this. All
>> you have to do is substitute "&lt;" (including both the ampersand and
>> the semicolon) for the less-than ("<") at the beginning of each tag.
>> Likewise, if you want something like "&lt;" to appear like that on your
>> page as such instead of as "<", write it as "&amp;lt;" instead. This is
>> called "escaping" characters that have a special significance when you
>> want to display them in a non-special way.

>
> I know, but I hate that. I wanted to try something different.
>

Please don't top-post, it complicates responses. Please don't
multi-post, I just found myself replying to you again on another
newsgroup before I realized it wasn't the same thread as this one. If
you must, use cross-posting.

As I said in the other location, I don't know why you hate doing it the
built-in, straightforward way and prefer to misrepresent the situation
as a problem to which you couldn't find a solution until you hacked one
out yourself using a complicated work-around with textareas, but that's
your business.
  Réponse avec citation
Vieux 16/04/2008, 05h28   #7 (permalink)
Jim Moe
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Make HTML code show up on the web

On 04/15/08 04:39 am, Bob wrote:
> I know, but I hate that. I wanted to try something different.
>

That is how it is done. You opinion of its elegance is irrelevant.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h35.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11595 seconds with 15 queries