![]() Preserved Topic: How to show code (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: solitary confinement |
![]() 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.... |
![]() try it like this: |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
![]() for the <> use ampersandLT; or ampersandGT; |
Paranoid (IV) Mad Scientist From: EN27 |
![]() Use & l t ; (no spaces) which equals < |
Bipolar (III) Inmate From: solitary confinement |
![]() That javascript will just show "This is red text" in red, right? |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
![]() yeah! What F1-Error said.... |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
![]() basically replace the <> with their HTML code names... |
Bipolar (III) Inmate From: solitary confinement |
![]() You guys are too fast for me! |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
![]() 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 |
![]() OK I tried F1's example, and did this: |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
![]() 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 |
![]() 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.... |
![]() oh yeah and no spaces... LOL |
Bipolar (III) Inmate From: solitary confinement |
![]() 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.... |
![]() give this man a purple pill and quick! |
Paranoid (IV) Mad Scientist From: EN27 |
![]() Yeah, like Boudga said, No Spaces. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() OK, This is bugging the heck out of me. Watch this! |
Paranoid (IV) Mad Scientist From: EN27 |
![]() heheh, No Spaces, Down with spaces. |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
![]() 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.... |
![]() wow I need more purple pills... |
Paranoid (IV) Inmate From: Canada, Toronto |
![]() <xmp>bla bla bla</xmp> |
Maniac (V) Mad Scientist From: Jacks raging bile duct.... |
![]() <purple pill> <b>SWALLOW</b></purple pill> |