You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (Jira)" <ji...@apache.org> on 2020/11/13 16:41:00 UTC

[jira] [Commented] (NETBEANS-3869) Change mimetypes from textmate added languages to better known mimetypes

    [ https://issues.apache.org/jira/browse/NETBEANS-3869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17231615#comment-17231615 ] 

Christian Lenz commented on NETBEANS-3869:
------------------------------------------

It is possible to do it by my own, but it is just a workaround. You can see the instructions here: https://github.com/Chris2011/netbeans-textmate-files

> Change mimetypes from textmate added languages to better known mimetypes
> ------------------------------------------------------------------------
>
>                 Key: NETBEANS-3869
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3869
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: textmate-lexer
>    Affects Versions: 11.3
>            Reporter: Christian Lenz
>            Assignee: Jan Lahoda
>            Priority: Major
>
> When I add a new language, the mimetype is just text/x-ext-a and the next one will be text/x-ext-b. But this is not really usefull, when I use the mimetype for some more specific stuff for example adding code completion items or adding actions to those mimetypes. I can't guess, when I have 10 new languages, which one is one.
> Solution is, and most of the time it is using the extension.
> So adding a new language for kt (Kotlin) files, it will be text/x-kt, for cs (C#) it will be text/x-cs for feature (cucumber feature files) it will be text/x-feature. This is way better IMHO. Using ext-a, ext-b, ext-c says nothing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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