7 5014
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 "<" to appear like that on your
page as such instead of as "<", write it as "&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.
On Apr 15, 4:32 am, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:
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 "<" (including both the ampersand and
the semicolon) for the less-than ("<") at the beginning of each tag.
Likewise, if you want something like "<" to appear like that on your
page as such instead of as "<", write it as "&lt;" instead. This is
called "escaping" characters that have a special significance when you
want to display them in a non-special way.
Bob <li************@gmail.comwrites:
On Apr 15, 4:32 am, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:
[escape the HTML]
I know, but I hate that. I wanted to try something different.
How do you deal with displaying </textareain HTML code with this
method?
Why do you hate escaping < as < - 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 <img src="<var>url</var>"
alt="<var>alternative text</var>" <span class="optional">width="<var>w</var>"
height="<var>h</var>"</span>>.</p>
(While not at all necessary, I've also escaped to > in the
displayed code to make it slightly clearer)
--
Chris
On 15 Apr, 12:07, Bob <lindsay.rob...@gmail.comwrote:
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.
Bob wrote:
[top-posting adjusted]
On Apr 15, 4:32 am, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:
>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 "<" (including both the ampersand and the semicolon) for the less-than ("<") at the beginning of each tag. Likewise, if you want something like "<" to appear like that on your page as such instead of as "<", write it as "&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.
In article <87************@dinopsis.dur.ac.uk>,
Chris Morris <c.********@durham.ac.ukwrote:
Bob <li************@gmail.comwrites:
On Apr 15, 4:32 am, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:
[escape the HTML]
I know, but I hate that. I wanted to try something different.
How do you deal with displaying </textareain HTML code with this
method?
Why do you hate escaping < as < - 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 '<' and '>' for
the selected (highlighted) text. Super quick.
--
dorayme
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) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Eric Osman |
last post by:
Hi,
When I run the following html file on netscape, and the button is
clicked, the new window pops BEHIND all my other windows.
How can I easily fix this html file so the window comes up in...
|
by: TonyJeffs |
last post by:
I'm new to this, and stole/doctored my code from the "Ugly JavaScript
Handbook"
I have a slide show program.
First theres stuff to set up the array, and the time between slides
Then a function...
|
by: ajay |
last post by:
I have following code for a slide menu but i twiked it to work for a
single level menu. Open it in a Browser to get a clear picture.
I have 2 Qs
1) How to make first entry as non-link. i.e i...
|
by: jonjon |
last post by:
Hi,
I want to be able to define the right property of my absolute positionned
elements... for example if a button is 50px left and 150px right, it will
resize when the page is resized.
This is...
|
by: Pasta Bolognese |
last post by:
Open VS.2003.
Click on a control on an aspx page in the HTML view.
Does it tell me the pixel position on the page?
Nooooooooooo.................
|
by: Miguel Dias Moura |
last post by:
Hello,
i have 5 panels in an ASP.net / VB page.
The panel 1 is visible the other 4 are NOT visible.
I also have 5 images: image 1, image 2, ..., image5.
When i click one of the images,...
|
by: Rob R. Ainscough |
last post by:
Again another simple concept that appears NOT to be intuitive or I'm just
stupid. I've read the WROX book and the example doesn't actually show how
the .master page links in the other content...
|
by: Bob |
last post by:
http://robertlindsay.blogspot.com/2008/04/how-to-make-html-code-show-up-on.html
I don't like the gt and lt shortcut, so I tried to do it with CSS and
a textarea table tag. Let me know what you...
|
by: KevinADC |
last post by:
Note: You may skip to the end of the article if all you want is the perl code.
Introduction
Many websites have a form or a link you can use to download a file. You click a form button or click...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |