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 - HTML handling inside <script> tags for type="text/x-handlebars", type="type="text/x-handlebars-template" or type="text/template"
Summary: HTML handling inside <script> tags for type="text/x-handlebars", type="type="...
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0
Hardware: All All
: P4 normal with 10 votes (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-13 21:51 UTC by Mobiletainment
Modified: 2016-03-29 08:43 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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">
    <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.