Chris2011 commented on issue #1045: Support for TextMate grammars (from VS Code) URL: https://github.com/apache/incubator-netbeans/pull/1045#issuecomment-444867832 What I can think of is only having a folder for supported languages with sub folders for the specific languages. textmate-languages (folder) -> rust (folder) (e.g.) So in this we should have a JSON or more the Java/NetBeans way, a XML file like with the part from the layer.xml or from a resolver.xml file. So I want to add the mimetype like "text/rust", the filetype ".rs" the icon, references to other files like the language specification file, a file for braces matchings and a file for snippets. That would be an easy way. So if you open NetBeans or an option like "load supported languages", NetBeans should create the needed stuff for a new language automatically. So if you open now a Rust file, it should have the new mimetype, the new icon, basic syntax highlighting, braces matching (if I added it) and snippets (if I added it). Thats it. Sounds easy and I don't know whether this is possible or not. But for someone who wants to add a new language with basic functionality, I don't want to write Java classes etc. create a new project bla bla bla. This should still be possible for more advanced features. My 2 cents.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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
