The Thing is, that you can extends the Java Editor to add new Hints for 
example, this is not possible for JS, HTML, CSS or PHP, because it is not open 
to extend those stuff. As you can see a plugin from NetBeans to adding KendoUI, 
this was only possible to add the plugin as a friend which is only a 
Workaround. Now it is not a friend anymore, so you can’t Access some JS stuff 
like JSTokens or SQLTokens or PHPTokens to work with that. Those Tokens are 
used for adding embedding languages to another language like SQL or HTML into 
JS Code which is not possible (AFAIK) with 3rd Party Plugins.


Cheers

Chris
Von: Peter Cheung
Gesendet: Montag, 26. Februar 2018 10:44
An: [email protected]
Betreff: Re: Netbeans quick outline plugin

  1.  Let me try out the javascript grammar in the coming few days 
https://github.com/antlr/grammars-v4/tree/master/javascript
  2.  Why netbeans just let everyone to access every api/class/functions ?


Thanks
>From Peter


________________________________
From: Christian Lenz <[email protected]>
Sent: Monday, February 26, 2018 5:39 PM
To: [email protected]
Subject: AW: Netbeans quick outline plugin

Sure, plugin makes sense. So for this, you are parsing the JS grammar again? I 
only wanted to say, that this is not needed, because NetBeans already does it 
for you, but you can’t acces the Tokens for example other than Java, because it 
is not public from the outside. Sure there is the CSL but it is not working. 
But if you do it by your own, you will not have any Problems.

Gesendet von Mail für Windows 10

Von: Peter Cheung
Gesendet: Montag, 26. Februar 2018 10:13
An: [email protected]
Betreff: Re: Netbeans quick outline plugin

Dear Chris


That would be great. I thought on such a plugin too, please Keep in mind, that 
we Need it for C/C++, Java, JavaScript, PHP and what NetBeans also Support. 
Maybe HTML XML too but could be optional.

Easy, Antlr already support those grammars

If this is not possible, with a 3rd Party plugin, because you have to get the 
JS, PHP C/C++ Parser Tokens to identify private, public, functions, members, 
classes etc. (This is, AFAIK, only possible for Java). You can implement it 
into the NetBeans core, instead of a plugin.

I have no experience to implement anything in core, don't even know how to 
submit my code for review and the team seems very busy on migrating the project 
to apache. not sure it is a good approach or not. Please suggest.

Cheers

Chris

Von: Peter Cheung
Gesendet: Sonntag, 25. Februar 2018 19:32
An: [email protected]
Cc: [email protected]
Betreff: Netbeans quick outline plugin

http://peter.quantr.hk/2018/02/netbeans-quick-outline/



Reply via email to