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
M@ Bourke wrote:
http://www.massimocorner.com/dreamweaver/skunkworks/cf_function_nav.mxp
copied the link from another list.
just run the file then reopen DW
go to "View" > "toolbars" > "cfml function navigator"
not as good as eclipse but its surely makes DW better then without it.
M@
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/