向Netbeans添加自定义文件扩展名 [英] Add a custom file extension to Netbeans

查看:113
本文介绍了向Netbeans添加自定义文件扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想弄清楚如何添加自定义文件类型以供Netbeans识别。

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

我正在编辑.tpl文件,我希望它们是被认可为PHP / HTML文件。

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

我看了这里这里但是我找不到配置目录中的cnd.properties和选项对话框中没有高级选项对话框。

I've looked here and here but I cant find cnd.properties in config directory and there is no Advanced Options dialog in the options dialog.

我正在使用带有PHP和所有模块的Netbeans 6.5最新的。

I'm using Netbeans 6.5 with PHP and all modules up to date.

推荐答案

让我猜一下,对于Smarty模板?我做了以下

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


  1. 打开工具和选择选项。

  2. 选择其他选项卡。

  3. 选择文件子标签页。

  4. 单击文件扩展名并输入 tpl

  5. 选择mime类型。

  6. 单击确定。完成!

  7. (可能需要重新启动Netbeans以查看实际更改)

  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)

这篇关于向Netbeans添加自定义文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆