Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 243803 - HTML handling inside <script> tags for type="text/x-handlebars", type="type="text/x-handlebars-template" or type="text/template"
HTML handling inside <script> tags for type="text/x-handlebars", type="type="...
Status: NEW
Product: web
Classification: Unclassified
Component: HTML Editor
All All
: P4 with 10 votes (vote)
Assigned To: Milutin Kristofic
Depends on:
  Show dependency treegraph
Reported: 2014-04-13 21:51 UTC by Mobiletainment
Modified: 2016-03-29 08:43 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Mobiletainment 2014-04-13 21:51:56 UTC
Currently, NetBeans treats the following code inside the <script> tag as plain text:

<script type="text/x-handlebars-template">

I'd appreciate if the code highlighting for the types
 - "text/x-handlebars-template" (when using templates with handlebars.js)
 - "text/x-handlebars" (when using templates with ember.js)
 - and also "text/template"

could be mapped to type="text/html" in order to benefit from the nice HTML highlighting.
Comment 1 ChrisLE 2016-03-29 08:43:41 UTC
I tried the plugin: it brings syntax highlighting to hbs files, hbs files has an icon in the project tree. It is ok for the moment, but the syntax highlighting of the hbs html is missing or broken. everything of the html inside the hbs file has the same color but someone can fix this or so.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo