Preserved Topic: How to show code |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: solitary confinement |
posted 01-19-2001 19:07
I'm writing up some stuff, and need to show the actual HTML code on the page. |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 19:11
try it like this: |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 19:12
for the <> use ampersandLT; or ampersandGT; |
Paranoid (IV) Mad Scientist From: EN27 |
posted 01-19-2001 19:14
Use & l t ; (no spaces) which equals < |
Bipolar (III) Inmate From: solitary confinement |
posted 01-19-2001 19:15
That javascript will just show "This is red text" in red, right? |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 19:15
yeah! What F1-Error said.... |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 19:17
basically replace the <> with their HTML code names... |
Bipolar (III) Inmate From: solitary confinement |
posted 01-19-2001 19:17
You guys are too fast for me! |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 19:23
If you visit http://htmlgoodies.earthweb.com/primers/jsp/hgjsp_1.html you will see code displayed on that page and if you view the source you'll see how it was coded to be able to show the code instead of running the code. |
Bipolar (III) Inmate From: solitary confinement |
posted 01-19-2001 19:23
OK I tried F1's example, and did this: |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 19:26
don't use the literal <> if you're wanting to display the tags... use & l t ; table & g t ; (obviously no spaces) |
Paranoid (IV) Mad Scientist From: EN27 |
posted 01-19-2001 19:27
leave out your < and > use & l t ; (with no spaces) and place a space between your opening and closing & g t ; |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 19:28
oh yeah and no spaces... LOL |
Bipolar (III) Inmate From: solitary confinement |
posted 01-19-2001 19:29
Man am I stupid. I gotta stop smoking pot, or I gotta start smoking cigarettes again. Ever since I stopped I've got eraser head. |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 19:30
give this man a purple pill and quick! |
Paranoid (IV) Mad Scientist From: EN27 |
posted 01-19-2001 19:30
Yeah, like Boudga said, No Spaces. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 01-19-2001 20:50
OK, This is bugging the heck out of me. Watch this! |
Paranoid (IV) Mad Scientist From: EN27 |
posted 01-19-2001 20:57
heheh, No Spaces, Down with spaces. |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 01-19-2001 21:01
dammit, I wanted to say that, I guess I need to cancel all social engagements so I can be more on top of my forum threads... *sigh* |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 21:31
wow I need more purple pills... |
Paranoid (IV) Inmate From: Canada, Toronto |
posted 01-19-2001 21:58
<xmp>bla bla bla</xmp> |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
posted 01-19-2001 22:15
<purple pill> <b>SWALLOW</b></purple pill> |