Add a custom file extension to Netbeans

前端 未结 4 1433
旧巷少年郎
旧巷少年郎 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条回答
  •  -上瘾入骨i
    2020-12-23 20:11

    Let me guess, for Smarty templates? I did the following

    1. Open Tools and Select Options.
    2. Select Miscellaneous tab.
    3. Select Files sub-tab thing.
    4. Click on New file extension and enter tpl.
    5. Select the mime type.
    6. Click OK. Done!
    7. (Restart of Netbeans may be required to see the actual changes)

提交回复
热议问题