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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to