Reputation: 3819
Is there any way to tell NetBeans to do correct syntax highlighting within the <script type="text/ng-template"></script>
block? By default there is no highlighting, which may be annoying with long code pieces.
Upvotes: 2
Views: 425
Reputation: 436
There is a request for it assigned to a netbeans developer: https://netbeans.org/bugzilla/show_bug.cgi?id=238949
But no solution so far.
Upvotes: 1
Reputation: 5100
There is a trick I use:
<?php echo '<script type="text/ng-template" id="template.tpt">' ?>
--HTML--
<?php echo '</script>' ?>
This makes the NetBeans recognize the HTML inside block.
Upvotes: 4