You love coding in Netbeans and you find it pretty uneasy when it does not function the way you want it to. That was the same with me when I started development in drupal and I was unable to associate the .module as PHP in my favorite editor Netbeans.
However with little play around with options I was able to associate .module files as PHP file in Netbeans IDE. So for doing so follow the steps.
You can also change the already added file extensions. For instance if you think your PHP file is going to contain more of JS or CSS code then configure Netbeans such that it recognizes JS code in PHP which it won’t be able to recognize by default. To do so, all you have to do is select File Extension as PHP and in File Type change the MIME type to CSS or JS whatever is required. That should do the trick and when you are done, revert back the changes.
Hope that saves your day.
Stay Digified !!