Re: Implement additional Hints for existing Language
Alex Muthmann <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, thanks for your reply. You can find the code here: https://github.com/wcm-io/wcm-io-tooling/tree/netbeans-sightly-hints SightlyLanguage.java: https://github.com/wcm-io/wcm-io-tooling/blob/netbeans-sightly-hints/netbeans/sightly/src/main/java/io/wcm/tooling/netbeans/sightly/editor/SightlyLanguage.java SightylHintsProvider: https://github.com/wcm-io/wcm-io-tooling/blob/netbeans-sightly-hints/netbeans/sightly/src/main/java/io/wcm/tooling/netbeans/sightly/editor/hints/SightlyHintsProvider.java I added some exceptions, so I would expect to see those as soon, as the language is called successfully. Am 2016-10-08 12:21, schrieb geertjan wielenga: > On 7-10-2016 0:26, Alex Muthmann wrote: >> Hi there, >> >> there has already be a discussion with Geertjan and Petr regarding the >> options to implement additional Hints for an existing language. I need >> to add additional Hints for HTML files and the consensus was, that I >> should use the CSL API to implement a Language and add a HintProvider. >> >> I did some basic tests > > Put your code on GitHub and send a link to it here so we can all see > the code rather than text. > > Gj > >> but ran into the following situation: >> As soon as I register a new Language XYZ which uses the mimeType >> text/html, the build-in HTML Language does not work anymore (no hints, >> no code-completion etc). I'd expect that all languages registered on a >> mimeType are used and not only one of those. >> >> I was not able to find this use-case in the netbeans source-code and >> I'm currently lost :( >> Could somebody probably provide an example of a working extension of >> an existing language or an alternative to the implementation of a >> complete new language? >> >> Thank you very much, >> Alex Muthmann