-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax coloring for .kt files #1228
Syntax coloring for .kt files #1228
Conversation
Excellent. |
This PR can serve as an example how to integrate syntax coloring for any language into NetBeans:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great.
Cool. I did it similar in my repo: https://github.com/Chris2011/TextmateBeans. Didn't know that a @GrammarRegistratrion exists, but I see, only for the NetBeans core, not usable for 3rd-party-plugins. I had a look into the code and it looks straight forward :) |
Re. TextMateBeans - wouldn't it be better to donate all of that to Apache? Then I wouldn't have to bother with Kotlin (only Kotlin) myself! |
Yes but first, I had an other intention to create such plugin, for this we can talk in private :) and second not all of that languages are working as expected. I created 4 tickets in case of problem with the textmate lexer. But also another topic. |
OK, I'll integrate my changes then. If you even consider contributing to Apache NetBeans, you can modify my commits. |
Last week I had a presentation in Ostrava. The second speaker, Leoš, was talking about Kotlin. Hence I decided to demonstrate native image with the sieve of Eratosthenes written in Kotlin.
I had to write a NetBeans module that provides syntax coloring for the .kt files. Here is the code that I have. If OK, I'd like to push it to master branch.