Add a custom file extension to Netbeans

前端 未结 4 1436
旧巷少年郎
旧巷少年郎 2020-12-23 19:07

I am trying to figure out how to add a custom file type to be recognised by Netbeans.

I am editing .tpl files and I would like them to be recognised as PHP/HTML file

4条回答
  •  抹茶落季
    2020-12-23 19:46

    In NetBeans 8.XX this is achieved by going to NetBeans > Preferences > Miscellaneous > Files. In the row File Extension click on NEW and enter your new file extension without the dot (example: tpl). Choose the Associated File Type (MIME) and click Apply.

提交回复
热议问题