CFComet.com has a custom tag that will not only output CF/HTML code, but
color-code it as well.

http://www.cfcomet.com/utilities/CF_ColoredCode_v3-2.zip

hth,
charlie

-----Original Message-----
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 8:10 PM
To: CF-Talk
Subject: RE: Display raw code in a browser


The <xmp> (example) tag was designed to do this, but I'm not sure how
supported it it.

I built a custom tag that accepts a file as raw HTML and then creates
two versions of the file for display: one with line numbers and one
without.  It then caches those for performance.

I use it for the examples on www.depressedpress.com

I'd be happy to share if you're interested (it'll need a little tweaking
to work outside my architecture, but not much).

Jim Davis

> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 18, 2003 8:44 PM
> To: CF-Talk
> Subject: RE: Display raw code in a browser
>
>
> i used to think it was the <pre> tag, but for some reason
> i think that its deprecated...try that maybe?
>
> tony
>
> -----Original Message-----
> From: Mark Leder [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 18, 2003 8:39 PM
> To: CF-Talk
> Subject: Display raw code in a browser
>
>
> I've seen it done many times, but I can't remember how its
> done - displaying CF and HTML source code in a web browser
> (not using view/source) without running it.  I thought it was
> a simple tag that I wrap the block of code. Ideas?
>
> Thanks, Mark
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to