Peter,

Open your site as a project in CFEclipse, then find the Tasks view (where
view=panel). Alter the filter on the tasks view to show only tasks from the
currently open project, then open one of the .cfm files from your project.
Instantly you should see a list of all the tasks in your project. You can
select the contents of the tasks view and paste into something else, like
Excel or whatever.

-- 
nathan strutz
http://www.dopefly.com/


On 4/4/07, Peter Boughton <[EMAIL PROTECTED]> wrote:
>
> I need to get a list of all the TODOs in a list of (primarily .cfm) files.
>
> In the unlikely event of people not being familiar with TODOs, they're
> just
> CFML comments like this:
> <!--- TODO: Thing I have to do --->
> The presence of the TODO: then flags up that something needs to be
> addressed. Very useful when you want to shove in some dummy data and
> return
> later to fix it. (Good editors can flag TODOs - eg: CFEclipse puts a blue
> bar next to the scrollbar)
>
> Currently I've got some regex to convert file contents into a
> pipe-delimited
> list, but I've been getting odd results and it has now started giving me
> buffer overflow errors for no clear reason.
>
> Here's the current code:
> <cfset Tasks = REReplace(Contents,'.*?(<!---
> TODO:)(.*?)(?=--->)([^<]|<[^!]|<!--[^-]|<!---\s+[^T])*','\2|','all')/>
> <ul>
> <cfloop index="i" list="#Tasks#" delimiters="|">
>     <li>#i#</li>
> </cfloop>
> </ul>
>
> I'm sure there has to be a better way of doing it than that, but I think
> I've been working on the problem for too long to figure it out myself, so
> if
> anyone here is able to offer a better solution it would be very much
> appreciated.
>
>
> Thanks.
>
> --
> \ \
> Peter Boughton
> blog.bpsite.net
> / /
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274529
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to