Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to use dreamweaver.codeHints.addMenu()?

Contributor ,
Jan 18, 2011 Jan 18, 2011

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

TOPICS
Extensions
545
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 19, 2011 Jan 19, 2011
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines