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

查看:35
本文介绍了向 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 并且选项对话框中没有 Advanced Options 对话框.

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.

我将 Netbeans 6.5 与 PHP 和所有模块一起使用.

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 才能看到实际更改)

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

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