Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is There Mustache Syntax Highlighter Or Plugin For NetBeans?

There are such thing as Mustache. I'm using NetBeans and I need to edit .mustache files. The problem is that when I open it using NetBeans, syntax is just like for plain text.

1) Is it possible to have HTML-like syntax for .mustache files?

2) Is there any plugin that allows to work easier with Mustache? I have found only this tutorial.

like image 289
daGrevis Avatar asked Jun 23 '11 14:06

daGrevis


2 Answers

I think better is to open this files as text/x-twig.

like image 133
Skiff Avatar answered Sep 21 '22 12:09

Skiff


If creating your own plugin is to hard, you might be already content if mustache templates are displayed as (normal) HTML instead of plain text.

This can be configured in Options > Miscellaneous > Files. Create a 'New' file extension named 'mustache'. Than select 'HTML Files (text/html)' as associated file type.

like image 26
Arnold Daniels Avatar answered Sep 23 '22 12:09

Arnold Daniels