Hi I am a newbie in Macromedia extenssion developement
I want to create an extenssion which will read the currently opened document
and define a new function tag dynamically by reading the functions declared in
the current document.

I have read the documentation of the functions dw.codeHints.addFunction(),
dw.codeHints.addMenu() which does this
I will manipulate the current document by using the dw.getDocumentDOM()
function.

But the problem is where should I write the script to perform this action and
where to store them so that the script is executed in the following events:
The user opens a document
The user edits a document
The user goes to a different opened document
The user selects a new site