View Full Version : Showing codes


chazvik
01-16-2005, 12:54 PM
How do you show a code without putting it in a text box?

wergo
01-16-2005, 01:07 PM
you can do

<xmp>html code to show here</xmp>

or

&lt; and &gt; which are replacements for < and >

tofujunkie
01-16-2005, 01:09 PM
Put your code between <xmp> and </xmp>, if I remember correctly.

Edit: Didn't see the first reply. Sorry!

chazvik
01-16-2005, 01:32 PM
Thanks guys, what does xmp stand for??

MaGiCSuN
01-16-2005, 02:05 PM
<XMP>...</XMP>
Stands for 'example', usually displayed in a typewriter font. Text within this tag will not be HTML-formatted, so you may put HTML-tags here that will be displayed in the browser as text.

there's also <pre></pre> but this one allows links, while <xmp></xmp> shows everything in html.

Love,
Mirna

chazvik
01-16-2005, 02:27 PM
Thanks :)

Rosey
01-16-2005, 03:58 PM
I use :

&.#.6.0.; for < and &.#.6.2.;. for > --take the . out.

What I usually do is type the code part and then go to replace in your editor, then you can replace all the &.#.6.0.; with < at once.

MaGiCSuN
01-16-2005, 04:00 PM
Rosey, i'm curious haha, what are those 'codes' called? i haven't seen them before, that's why :)
thanks !

Love,
Mirna

Rosey
01-16-2005, 04:13 PM
it's ascii code :)

MaGiCSuN
01-16-2005, 04:17 PM
ah ok, thanks :D

Love,
Mirna