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 添加自定义文件扩展名


基础教程推荐
- 如何在 Laravel 中使用 React Router? 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何替换eregi() 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01