Got a little techonology problem that you need fixed pronto? Post it here and we'll see what we can do.
Topic locked

Need help making HTML visisble

Fri Apr 08, 2005 12:46 am

Well, I made a guild layout for someone, now heres the problem. I can't find a way to make the code visible so he can veiw it and copy and paste it.

Here is the code.


Code:
<img

src="http://img164.exs.cx/img164/2302/packofthedarkwol

fheader5nw.jpg">
<p>
<p>
<p>
<div align="center"><table border="0" cellpadding="0"

cellspacing="0" width="400" height="262"

background="http://img164.exs.cx/img164/3751/packofthe

darkwolfblog7xy.png"><tr><td width="425" height="9"

colspan="2" valign="top"></td></tr><tr><td width=10

height="240" valign="top"></td><td width=391

height="240" valign="top"><div style="width: 178px;

height: 246px; overflow: auto"><div style="padding:

2px;">
<font color="white">TEXT HERE</font>
<br></div></div></td></tr></table></div>
<p>
<p>
<p>
<img

src='http://images.neopets.com/template_images/luperun

_yellowR.gif'><b><font

c="brown">Advertising</font></b> <img

src='http://images.neopets.com/template_images/luperun

_yellowL.gif'>
<div style="width:150; height:150; overflow: auto;">
Your text would go here... Make sure you add enough,

or the box won't scroll!
</div>
<p>
<p>
<p>
<img

src='http://images.neopets.com/template_images/luperun

_yellowR.gif'><b><font c="brown">Contest</font></b>

<img

src='http://images.neopets.com/template_images/luperun

_yellowL.gif'>
<div style="width:150; height:150; overflow: auto;">
Your text would go here... Make sure you add enough,

or the box won't scroll!
</div>
<p>
<p>
<p>
<img

src='http://images.neopets.com/template_images/luperun

_yellowR.gif'> <b><font c="brown">Links</font></b>

<img

src='http://images.neopets.com/template_images/luperun

_yellowL.gif'>
<div style="width:150; height:150; overflow: auto;">
Your text would go here... Make sure you add enough,

or the box won't scroll!
</div>

Fri Apr 08, 2005 2:49 am

You could try putting it in a textarea box.

Or just linking him to this page ;)

Or saving it in notepad and sending it to him.

Fri Apr 08, 2005 3:00 am

yep either use a <textarea>code here </textarea> or <xmp>code here</xmp>

I prefer the textbox cause it's takes up less space on the viewing page.

Fri Apr 08, 2005 5:54 am

BeDeviled wrote:yep either use a <textarea>code here </textarea> or <xmp>code here</xmp>

I prefer the textbox cause it's takes up less space on the viewing page.


I've always been a fan of xmp tags but that's because I don't like the look of text boxes :)

Fri Apr 08, 2005 6:26 am

Medusa wrote:
BeDeviled wrote:yep either use a <textarea>code here </textarea> or <xmp>code here</xmp>

I prefer the textbox cause it's takes up less space on the viewing page.


I've always been a fan of xmp tags but that's because I don't like the look of text boxes :)


Text areas look awsome! >.> What are you talking about?

Yeah, <textarea> HTML goes here </textarea>

If you want it bigger, just go <textarea width='#' height='#'> Stuff here </textarea>

If you dont set a width and height, its going to be really tiny. >.>

Fri Apr 08, 2005 7:24 am

watericesage wrote:
Medusa wrote:
BeDeviled wrote:yep either use a <textarea>code here </textarea> or <xmp>code here</xmp>

I prefer the textbox cause it's takes up less space on the viewing page.


I've always been a fan of xmp tags but that's because I don't like the look of text boxes :)


Text areas look awsome! >.> What are you talking about?

Yeah, <textarea> HTML goes here </textarea>

If you want it bigger, just go <textarea width='#' height='#'> Stuff here </textarea>

If you dont set a width and height, its going to be really tiny. >.>


Textboxes are just downright ugly no matter what size they are. They can be made a little better by changing colours and whatever else but it still doesn't change the fact that they're text boxes.

Fri Apr 08, 2005 5:43 pm

Medusa wrote:
watericesage wrote:
Medusa wrote:
BeDeviled wrote:yep either use a <textarea>code here </textarea> or <xmp>code here</xmp>

I prefer the textbox cause it's takes up less space on the viewing page.


I've always been a fan of xmp tags but that's because I don't like the look of text boxes :)


Text areas look awsome! >.> What are you talking about?

Yeah, <textarea> HTML goes here </textarea>

If you want it bigger, just go <textarea width='#' height='#'> Stuff here </textarea>

If you dont set a width and height, its going to be really tiny. >.>


Textboxes are just downright ugly no matter what size they are. They can be made a little better by changing colours and whatever else but it still doesn't change the fact that they're text boxes.



Yup. XMP is much better. You could just send him a .txt document though..

Fri Apr 08, 2005 6:11 pm

The only "correct" way to do this is to replace all & with &amp;, > with &gt;, and < with &lt;. You can then paste it anywhere into the page (could use a textarea/pre/code tag if you want to, but you still need to do the replacements).

TEXTAREA tags are not supposed to contain HTML -- you still need to escape < & > if you use a TEXTAREA box. Just try putting the code for a textarea box into a textarea box, and you'll see why.
XMP is deprecated (the same problem with breaking HTML rules about escaping < & > also applies to this one).
Topic locked