anyword hinting while in JavaScript mode


#1

I am trying to get the anyword hinting to work along side the JavaScript hinting.

I have them both loaded, but I can’t seem to get them to function together. is there something special I must do?


#2

You could write a wrapper function that calls both and combines the result, and set that as your hint function.


#3

Can you help please, I have no idea how to do that, or where to even start.


#4

How hard would it be to internally stack hint functions as they are defined?

Similar to how brackets.io (which uses codemirror) has a hint manager that stacks hint functions. Similar to how codemirror does cm.on/cm.off handling?

So if I had multiple hint functions for a language they would all run then merge the results. Then a [“all”] mode to have it run for all languages.

I think this would be a great addition to codemirror.