本文介紹了向 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 添加自定義文件擴展名的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!