How do I associate ".js.php" with JavaScript syntax in NetBeans IDE 6.5?
2 answers
I am not using NetBeans or PHP, but the following trick helped me with a similar setup:
<?php if(0) { ?><script><?php } ?>
# code goes here
<?php if(0) { ?></script><?php } ?>
Just surround the js code with <script>
or tags <style>
that are not displayed. You don't need to set up any special associations, assuming the editor is smart enough about HTML.
+7
source to share