Add a custom file extension to Netbeans(向 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
- 打开工具并选择选项.
- 选择其他选项卡.
- 选择文件"子选项卡.
- 点击新建文件扩展名并输入tpl.
- 选择 MIME 类型.
- 单击确定".完成!
- (可能需要重新启动 Netbeans 才能看到实际更改)
这篇关于向 Netbeans 添加自定义文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:向 Netbeans 添加自定义文件扩展名
基础教程推荐
- 找不到类“AppHttpControllersDB",我也无法使用新模型 2022-01-01
- HTTP 与 FTP 上传 2021-01-01
- 如何在 Symfony 和 Doctrine 中实现多对多和一对多? 2022-01-01
- phpmyadmin 错误“#1062 - 密钥 1 的重复条目‘1’" 2022-01-01
- PHP 守护进程/worker 环境 2022-01-01
- 在 yii2 中迁移时出现异常“找不到驱动程序" 2022-01-01
- 如何在 XAMPP 上启用 mysqli? 2021-01-01
- 在 CakePHP 2.0 中使用 Html Helper 时未定义的变量 2021-01-01
- Doctrine 2 - 在多对多关系中记录更改 2022-01-01
- 使用 PDO 转义列名 2021-01-01