Before I saw your post, I did a search/replace for the "<" and ">" characters and replaced with "<" and ">" respectively. Is that wrong? It worked okay but did not honor the line breaks, so the code got all squished up. I was hoping to be able to show the code "as laid out" but so that it displays only and does not execute.
I don't understand what you said below. You said the latter that you gave is better but then you said it would "execute," so that means it's NOT better, correct? ??? Uh... wait, not sure what you mean by "validate." Maybe that's why i'm confused.
Thanks for your help. You're great!
Originally posted by pyro You have two options: One is using the depreciated <xmp>, the other is changing your < to &lt; The latter method is much better...
Code:
<xmp>
<b>This will show up as code!</b>
</xmp>
<b>This will also show up as code, and will validate!</b>
Okay, I think I understand you. What you said you didn't understand about my search and replace... I think it did not display as I intended. I did a search and replace (for the section of code I wanted to display) and replace the "<" character with... uh... how do I show this... &, #, 6, 0, ; (not the commas.
So, if I understand you, I can replace the "<" with &,l,t,; (no commas)... AND... i will have to actually KEEP the BREAK tags in there to break the lines as i wish.
Bookmarks