Skip to main content
Inspiring
January 18, 2011
Question

How to use dreamweaver.codeHints.addMenu()?

  • January 18, 2011
  • 1 reply
  • 545 views

Hello to all,

I am trying to use the dreamweaver.codeHints.addMenu() function, but the reference is very poor. So far, I was able to make it work trying various arguments to the function, but I stumble upon the dismissChars argument.Reference says: "The dismissChars argument specifies the nonstandard characters that the user types to dismiss the Code Hints menu."It is optional, but if you want to provide a subsequent argument (which I do), you have to provide something otherwise DW throws an error.

I have tried an empty string [""], the boolean false, the string ["Esc"], but this throws an invalid argument message.

I have tried [Esc], but it throws an "Esc is not defined" message.

So this seems to indicate that the argument needs not to be a string nor a boolean, but some constant. I have tried Esc as this is the regular name for xml menu.xml string, but it seems DW wants some internal constant that I cannot find.

Would any DW guru or engineer be able to answer this question, please?

Thank you so much in advance...

Xavier

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
January 19, 2011

Well, I'm answering my own question.

Actually, I got it wrong. I thought the dismissChars was wrong as message was about argument 9, and I assumed it was zero-based, but it is 1-based, so the wrong argument was descriptionArray, which needs an array or null.

Cannot tell for dismissChars as I will not used it, it works with an empty string.