Liglo App
Liglo App

Reputation: 3819

NetBeans - <script type="text/ng-template"> highlighting

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

Answers (2)

Erik Baan
Erik Baan

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

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

Related Questions