Re: how to make code display as text

2007-01-10 Thread Charlie Griefer
but that's exactly what HTMLEditFormat() does. it escapes the brackets. can you clarify "didn't get that to work"? On 1/10/07, daniel kessler <[EMAIL PROTECTED]> wrote: > well I didn't get that to work, at least not right away. But it got me > thinking and this did work: > >

RE: how to make code display as text

2007-01-10 Thread Bobby Hartsfield
#replace(code, "<", "<", "all")# -Original Message- From: Daniel Kessler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 11:38 AM To: CF-Talk Subject: how to make code display as text I have a web page where I describe how to use bits of code. I don't want the code to ena

Re: how to make code display as text

2007-01-10 Thread daniel kessler
well I didn't get that to work, at least not right away. But it got me thinking and this did work: Without the brackets, it's not interpreted. >htmlEditFormat() will escape all HTML metacharacters into their >corresponding HTML entities, so they wo

Re: how to make code display as text

2007-01-10 Thread Charlie Griefer
look up HTMLEditFormat() in the docs. Under string functions. On 1/10/07, Daniel Kessler <[EMAIL PROTECTED]> wrote: > I have a web page where I describe how to use bits of code. I don't > want the code to enact, but to just display the actual line of code. > I thought that changing the file to .

Re: how to make code display as text

2007-01-10 Thread Barney Boisvert
htmlEditFormat() will escape all HTML metacharacters into their corresponding HTML entities, so they won't be interpreted by the browser. Probably want to drop the result into a DIV that has white-space:pre set on it to preserve formatting. cheers, barneyb On 1/10/07, Daniel Kessler <[EMAIL PROT