Mar*_*kus 10 html javascript eclipse syntax-highlighting handlebars.js
目前我正在开发一个带有Handlebars的项目(JS模板引擎),我正在使用eclipse进行开发.问题是,eclipse没有为我的Handlebars-Templates提供语法高亮.我的模板包含在标签中.语法突出显示按预期工作.
截图:

Eclipse是否也可以突出显示此代码(最好使用HTML语法着色)?
小智 5
如果你正在使用PHP,你可以通过添加空的php标签来欺骗Eclipse:
<scrip<?php ?>t type="tmpl_handlebars" id="tmpl_places">
<article>
<h1>
...
</h1>
</article>
</script>
Run Code Online (Sandbox Code Playgroud)