Ray Camden's blogcfc has some cf code that does this when you use the
<code></code> tags in your post. You could download blogcfc and fish out
that code.

I have also noticed that the latest version of CFEclipse 1.3.0Beta on
eclipse 3.2 will maintain the colour of code when you cut and paste. I'm
sure this was not the case in earlier versions. So the code below was cut
and paste to word then I changed the font to courier then paste it below.

<cfset qowners = application.accountline.GetOwnerPurchases(consumer_no=
request.consumer_no)>

<cfif qowners.recordcount>

<cfloop query="qowners">

<cfif listfind("FRED,JIM,GEORGE,BETTY,MIKE",qowners.product_code)>

.......

HTH


On 7/11/06, Ryan, Terrence <[EMAIL PROTECTED]> wrote:
>
> I have a cfc that generates styled HTML that does it for me.  Using it
> to do that might be a bit of a cludge, but I'd be happy to share it with
> you.
>
> But it has difficulty with complex code.
>
> Terrence Ryan
> Senior Systems Programmer
> Wharton Computing and Information Technology
>
> E-mail:         [EMAIL PROTECTED]
>
> -----Original Message-----
> From: Troy Simpson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 11, 2006 11:11 AM
> To: CF-Talk
> Subject: Code Colors
>
> I need to write some documentation and I need to included some code in
> the documentation.  I would like to color the code that is in the
> documentation the way that Dreamweaver or Homesite does.
>
> Has anyone had to do this before?
>
> Is there anyway to do this easily?
> Or am I going to have to set the font color for each little bit of text.
> This is going to take forever.
>
> --
> Thanks,
> Troy
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246143
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to