How do I tell Netbeans that a section of code is Javascript?

前端 未结 4 971
旧时难觅i
旧时难觅i 2021-01-23 04:11

I\'m using the Zend Framework\'s javascript helpers of the form:

headScript()->captureStart(); ?>
//Javascript here
h         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-23 05:14

    From my knowledge this functionality is not yet implemented in the current version of NetBeans IDE that is 6.9.1. I can show you a workaround through which you can fool the NetBeans IDE to highlight the Javascript as a script section, and also keeps the PHP processor happy. It will look like following code snippet:

        headScript()->captureStart(); ?>
        
        headScript()->captureEnd(); ?>
    

    I have tested this in NetBeans IDE 6.9.1

提交回复
热议问题