This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243803

Summary: HTML handling inside <script> tags for type="text/x-handlebars", type="type="text/x-handlebars-template" or type="text/template"
Product: web Reporter: Mobiletainment
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: chrizzly
Priority: P4    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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">
    <div>
    </div>
</script>

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 Christian Lenz 2016-03-29 08:43:41 UTC
I tried the plugin: https://github.com/jbboehr/netbeans-handlebars-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.