Let me guess, for Smarty templates? I did the following
- Open Tools and Select Options.
- Select Miscellaneous tab.
- Select Files sub-tab thing.
- Click on New file extension and enter tpl.
- Select the mime type.
- Click OK. Done!
- (Restart of Netbeans may be required to see the actual changes)