anyword hinting while in JavaScript mode


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?


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


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


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

Similar to how (which uses codemirror) has a hint manager that stacks hint functions. Similar to how codemirror does cm.on/ 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.