Is there a mustache template syntax highlighter or plugin for Eclipse?

Robin Duckett picture Robin Duckett · Dec 10, 2010 · Viewed 8.1k times · Source

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.

Answer

zerojarvis picture zerojarvis · Jan 5, 2011

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.