Here is some scripts i wrote for homesite that do a similar thing. You
can only navigate down and up to the next <cffunction in the file tho.
save each sub as a .vbs file and then add them as custom buttons to
one if your quickbar tabs...right click on the quick bar,
select 'customise'
and then 'add custom button',
then 'Active script file' - point each button to your vbs files.
Open a cfc then click your 'UP' and 'DN' buttons to navigate through
your CFC file.
Hope someone finds them usefull...ive since moved on to cfeclipse.
These scripts just make homesite a little less painfull with large
cfc's
Pat
//navigate down
Sub Main
Application.ActiveDocument.GetCaretPos col,currentLine
'MsgBox(currentLine)
'MsgBox(col)
for i = currentLine to Application.ActiveDocument.LineCount
If Instr( Application.ActiveDocument.Lines(i), "<cffunction" ) THEN
Application.ActiveDocument.SelectLine(i+1)
Exit For
End If
next
End Sub
//navigate up
Sub Main
Application.ActiveDocument.GetCaretPos col,currentLine
for i = currentLine-3 to 1 step -1
If i <> currentLine AND Instr(
Application.ActiveDocument.Lines(i), "<cffunction" ) THEN
Application.ActiveDocument.SelectLine(i+1)
Exit For
End If
next
End Sub
On 5/30/05, Dave Merrill <[EMAIL PROTECTED]> wrote:
> Massimo, is this by any chance usable in HomeSite or the old CF Studio?
>
> Dave Merrill
>
>
> > Sorry, I shouldn't post links so early in the morning, it was 6
> > AM here :-((
> > It's there now:
> >
> > http://www.massimocorner.com/dreamweaver/skunkworks/cf_function_nav.mxp
> >
> > Massimo
>
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>
>
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]