> 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?

If it's just a simple snippet, you can just replace the angle brackets (<,
>) with the HTML character entities that represent them (&lt;, &gt;). You
could use the Replace or ReplaceList functions for that.

If you want to show an arbitrary file's source code, I think you could load
it into a variable with CFFILE, then just do something like this:

<pre><xmp>#myfilecontents#</xmp></pre>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

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

Reply via email to