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

前端 未结 4 1064
旧时难觅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条回答
  •  轮回少年
    2021-01-23 05:08

    Something like this:

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

    Of course it will produce two useless lines in your JS output, but you can modify captureEnd() method to strip those for you.

提交回复
热议问题