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:
>
>
#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
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
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 .
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
5 matches
Mail list logo