Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 729
Robin Duckett Avatar asked Dec 10 '10 15:12

Robin Duckett


1 Answers

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.

like image 139
zerojarvis Avatar answered Oct 25 '22 12:10

zerojarvis