如何让 Dreamweaver 搜索 Perl 文件?
我使用 Dreamweaver 作为 Web 开发的首选编辑器,并且经常发现旧项目有一些 Perl 文件。
由于某些原因,Dreamweaver 查找和替换对话框似乎无法将这些 Perl 文件(例如 .pl 或 .cgi)识别为可搜索文件,因此当我使用“在文件夹中查找”时”在我知道仅包含 Perl 文件的文件夹上,它返回“未在 0 个文档中找到”并且似乎没有搜索它们。
如何让 Dreamweaver 搜索这些文件?
I use Dreamweaver as my editor of choice for web development, and often find old projects have a few Perl files.
For some reson the Dreamweaver find and replace dialog does not seem to recognise these Perl files e.g. .pl or .cgi as searchable files, so when I use the "find in folder" on a folder I know contains only Perl files it returns "Not found in 0 documents" and doesn't appear to search them.
How can I get dreamweaver to search these files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
默认情况下,Dreamweaver 不搜索 SCALA、CGI、PERL、CLS 或其他罕见文件类型文件。例如,如果您需要在一堆具有多个 CGI 和 PERL 扩展名(例如 .cgi 或 .pl)的文件中执行全局查找和替换,Dreamweaver 将跳过具有罕见扩展名的文件。
要使 Dreamweaver 在 Windows 中识别这些扩展,您需要编辑两个不同的
extensions.txt
文件。以下是要遵循的基本步骤。位置 1:
C:>用户>用户名>应用程序数据>漫游>土坯> Dreamweaver > en_US >配置> Extensions.txt
在第一行添加 SCALA 或 CLS 或 PL 或 CGI 或您需要的文件类型。您可以在任意位置输入文件扩展名类型,以逗号分隔。保存此文件。
位置 2:
C:> Program Files(或 Program Files (x86) > Adobe > Adobe Dreamweaver CC > Configuration > Extensions.txt
同样,在此第一行添加 SCALA 或 CLS 或 PL 或 CGI 或您需要的文件类型您可以在任意位置输入文件扩展名类型,并用逗号分隔。
现在重新启动 Dreamweaver,如果您立即进行搜索和替换,您会发现 Dreamweaver 将索引、搜索并打开该扩展名的文件。您添加的
前面提到的“第一行”的示例如下:
第一行:
HTM、HTML、SHTM、SHTML、XHTML、STM、SSI、JS、CGI、PL、JSON、...
此答案包含来自 此页面。
Dreamweaver does not by default search SCALA, CGI, PERL, CLS, or other rare file type files. For example, if you need to do a global find-and-replace inside a bunch of files with several CGI and PERL extensions, such as .cgi or .pl, Dreamweaver will skip the files with the rare extensions.
To make Dreamweaver recognize these extensions in Windows, you need to edit two different
extensions.txt
files. Here are the basic steps to follow.Location 1:
C:> Users > User_Name > AppData > Roaming > Adobe > Dreamweaver > en_US > Configuration > Extensions.txt
Add SCALA or CLS or PL or CGI or your needed file type in the first line. You can enter the file extension type anywhere, separated by a comma. Save this file.
Location 2:
C:> Program Files (Or Program Files (x86) > Adobe > Adobe Dreamweaver CC > Configuration > Extensions.txt
Likewise, add SCALA or CLS or PL or CGI or your needed file type in the first line of this file. You can enter the file extension type anywhere, separated by a comma. Save this file.
Now restart Dreamweaver. If you do a search and replace now, you will find that Dreamweaver will index, search, and open the files of the extension you've added.
Sample of the previously mentioned “first line” is below:
First Line:
HTM,HTML,SHTM,SHTML,XHTML,STM,SSI,JS,CGI,PL,JSON,…
This answer contains info from this page.
有一个 Dreamweaver 扩展 添加了 perl "支持”——例如语法着色。我不知道该支持中是否包含可搜索性,但这是我首先尝试的。从那时起,Dreamweaver 至少会将 PL 和 CGI 文件识别为可以编辑的文件。
There's a Dreamweaver Extension which adds perl "support" -- syntax colouring for example. I don't know if searchability is included in that support, but it's what I'd try first. Dreamweaver would at least recognise PL and CGI files as files it can edit from then on.