Re: Implement additional Hints for existing Language

geertjan wielenga <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Organization Oracle Corporation
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.