You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/05/02 09:16:35 UTC
[GitHub] [netbeans] JaroslavTulach edited a comment on issue #1228: Syntax
coloring for .kt files
JaroslavTulach edited a comment on issue #1228: Syntax coloring for .kt files
URL: https://github.com/apache/netbeans/pull/1228#issuecomment-488600982
This PR can serve as an example how to integrate syntax coloring for any language into NetBeans:
1. find the TextMate grammar somewhere (mine is from [kotlin-sublime-package](https://github.com/vkostyukov/kotlin-sublime-package/blob/ce599a846ac9f86d4671a024d21220ca08e50f66/Kotlin.JSON-tmLanguage) project, ASF 2.0 licensed, so OK, right @matthiasblaesing?)
2. use the FileType wizard to generate `DataObject` representing the file in editor
3. use `@GrammarRegistration` annotation to connect the two
4. prepare a __new file__ template processed by freemarker
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists