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.
sample: <script id="tmplTablaCuenta" type="text/x-jsrender"> <div id="loading" style="text-align:center;display:none"> <thead> <tr> <th> </th> <th>Numero</th> <th>Fecha</th> <th>Prefijo</th> <th>Cliente</th> <th>Valor</th> </tr> </thead> </table> </div> <div id="error"></div> </script>
Reproducible, but I think this is more of a enhancement. It would work if type is set to text/html but I guess that's not possible with used framework? From "text/x-jsrender" NetBeans can't know it is HTML
I'm having the same issue with type="text/x-handlebars". It would be nice to configure how the editor handles various <script> tags. Like the original requester, I too would like HTML formatting within these tags. I'm guessing this will become more and more popular as client-side JS frameworks are in use.
*** Bug 248958 has been marked as a duplicate of this bug. ***
type="text/x-jsrender" - html type="text/x-handlebars" - ??? type="text/ng-template" - html
Probably also text/x-handlebars-template
This is SO MUCH needed feature for a good angularjs/ionic/javascript/frontend programmer! we have next types: text/html text/template text/x-jsrender text/ng-template text/x-handlebars text/x-handlebars-template that should be treated as html (and templating syntax inside) in a script tags. And it's widely used by all front-end developers.
Created attachment 152602 [details] Look at this mess! Please fix this! We suffer much! Need formatting and cc in <script type="text/ng-template"> So much! Please, please, please!
Please, do not change the version meta data. Thank you
Ok. Sorry.
I am sorry, this is really enhencement. There is a lot of work for each type to be recognizable.
Netbeans can't claim it has angular support if it can't even correctly format templates... this is really needed. Does anyone know any work-a-rounds?
I need that text/ng-template format tooo
So please vote for it. Bugzilla for netbeans has a voting system. More votes, means change to a higher priority. But a comment is not really a vote.
This is extremely annoying.