Why not text/x-toml MIME type? Gj
On Fri, 4 Dec 2020 at 16:34, Rahul Khandelwal <[email protected]> wrote: > Hi All, > > I am trying to develop toml file support for netbeans. > I am following this tutorial - > https://netbeans.apache.org/tutorials/nbm-javacc-lexer.html > > Following is what I did to register the language - > > > > > > > > > > > > > > > *public class TomlLanguageProvider extends LanguageProvider{ private > final Supplier<Language<?>> supplier = () -> new > TomlLanguageHierarchy().language(); @Override public Language<?> > findLanguage(String mime) { return (FileType.MIME.equals(mime)) ? > supplier.get() : null; } @Override public LanguageEmbedding<?> > findLanguageEmbedding(Token<?> token, LanguagePath lp, InputAttributes ia) > { return null; }}* > > But it doesn't seem to be working. > when I create a new TOML file, syntax coloring is missing. > *Please note that MIME type for TOML is text/plain only.* > > As the mime type is not helping me to register language, please let me know > how can I register language support using extension? > > Regards, > Rahul Khandelwal >
