Question

I'm looking for a Mustache template syntax highlighter / plugin in Eclipse

Does one exist? I don't seem to be finding anything on google, and I don't know how to write my own for Eclipse.

Was it helpful?

Solution

There doesn't seem to be any plugin for supporting mustache Editors and views (see Eclipse MarketPlace).

That leaves only for now using an external supported editor (i.e. outside of Eclipse)

OTHER TIPS

Although not perfect, you can use Eclipse and set MUSTACHE template files to HTML.

  1. Go to Eclipse->Preferences->General->Content_Types
  2. Edit CONTENT_TYPE to add a file association of .mustache
  3. Go to Eclipse->Preferences->General->Editor->File_Associations
  4. You should see the default HTML editors already set. If not, add a .mustache editor of your choice. I used HTML_EDITOR.

Although it won't syntax highlight the {{ }}, it's still easier to read.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top