How to change PHP Smarty plugin template file extension in NetBeans?

后端 未结 2 1592
迷失自我
迷失自我 2021-01-03 03:46

NetBeans uses PHP Smarty Framework plugin for *.tpl files. Is it possible to change this to *.htm? I use .htm extension for smarty templates and would like to benefit from t

相关标签:
2条回答
  • 2021-01-03 03:57

    I found http://wiki.netbeans.org/FaqCplusPlusDefaultExtensions , unfortunately it's only for C/C++ .

    The php-tab should have something like it as well...

    0 讨论(0)
  • 2021-01-03 04:05

    In NetBeans (with the PHP Smarty Framework plugin installed):

    1. Click on the Tools menu, and select Options
    2. Click on Miscellaneous located toward the right side of the top icon bar of the Options dialog.
    3. Click on the Files tab.
    4. In the File Extension combo-box field, select htm.
    5. In the Associated File Type (MIME) field, change the value to TPL (text/tpl).
    6. Click OK

    To restore the original behavior, repeat the above steps, except select HTML Files (text/html) in step 5.

    0 讨论(0)
提交回复
热议问题