向 Netbeans 添加自定义文件扩展名

2021-12-26 00:00:00 ide php 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 才能看到实际更改)

相关文章