If you'd like it I use a custom tag that presents a code file in a text box
with line numbering then offers links to open the code in a new window with
or without line numbering (so that you can use the line numbers for
reference but still cut and paste the code without them).

I use it at depressedpress.com.  Here's an example:



  _____  

From: Mark Drew [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 13, 2004 11:06 AM
To: CF-Talk
Subject: How to display coldfusion code in a text area

Hi all
I want to display the following code in a textarea box of a coldfusion page:

<!--- some comment --->
<cfparam name="attributes.content" type="stuct">

My mind has gone a blank this afternoon, I wanted to simply display
the code rather than it being processed by CF

would I do it in _javascript_ (split out any offending bits) ?? or is
there a simpler way?

Thanks in advance
--
Mark Drew
mailto:[EMAIL PROTECTED]
blog:http://cybersonic.blogspot.com/

  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to