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.开发者_开发知识库
Although not perfect, you can use Eclipse and set MUSTACHE template files to HTML.
- Go to Eclipse->Preferences->General->Content_Types
- Edit CONTENT_TYPE to add a file association of .mustache
- Go to Eclipse->Preferences->General->Editor->File_Associations
- 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.
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)
精彩评论