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.DefaultCommentHandler fixed the issue.

On Wed, Aug 21, 2019 at 3:57 PM Ian Utley <utley....@gmail.com> wrote:

> 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.
>

Reply via email to