Re: Implement toolbar Comment/Uncomment actions

2019-08-21 Thread Geertjan Wielenga
Great. What’s the language you’re providing support for? Gj On Wed, 21 Aug 2019 at 20:42, Ian Utley wrote: > Solved it. FYI. I had been following the tutorial at > https://platform.netbeans.org/tutorials/nbm-javacc-lexer.html and the > tutorial code doesn't override the getCommentHandler() meth

Re: Implement toolbar Comment/Uncomment actions

2019-08-21 Thread Ian Utley
Solved it. FYI. I had been following the tutorial at https://platform.netbeans.org/tutorials/nbm-javacc-lexer.html and the tutorial code doesn't override the getCommentHandler() method of the LanguageRegistration class which extended DefaultLanguageConfig. Adding a suitable CommentHandler.DefaultCo

Implement toolbar Comment/Uncomment actions

2019-08-21 Thread Ian Utley
Hi, I have created and registered a new File Type inside Netbeans 11. However the comment/uncomment buttons in the editor toolbar do not do anything (as expected). How do I implement these actions, do I need to also create an EditorKit, or is that deprecated? Regards Ian.