Custom IntelliSense For Objects
-
I am trying to enhance NotePadd++ javaScript language to have have IntelliSense for specific objects I’m working on (Adobe PDF Scripting in case anyone knows of it already existing). As a simplified example, if I were to type
document.
I would hope to see IntelliSense display a list of available properties and methods that I’ve specified as available to be used with a certain object.I presume this is possible, I’m just not looking properly. Something like custom object property IntelliSense? I looked at AutoComplete, which sort of works, but it would list out all possible items, where I’d prefer to type the object itself first.
I looked in the function list and saw the classParser which looked promising, however it didn’t quite make sense to me how to modify it and I don’t want to break the instance of javaScript that I’m working with.
Ultimately I’m looking for answers to these questions:
- What’s the name of the feature I’m looking for?
- What menu, XML file drives this?
- Any libraries available that I could use to reverse engineer for my own situation?
Thanks.
-
Npp is a general purpose editor and has no reflection/inspection built in for any programming language. But it does have the ActiveX plugin that allows JavaScript to manipulate Scintilla’s calltip and autocomplete objects at runtime.
Another option would be to use my LSP client, but that means you need to have an LSP server running for JavaScript, since I don’t work with Java/JavaScript I haven’t tested/investigated that.