简体   繁体   English

让Aptana识别php(如果另存为html文件)

[英]Get Aptana to recognize php if it is saved as an html file

I'm working on this project that uses a lot of php files saved as html files. 我正在使用许多保存为html文件的php文件的项目中进行工作。 I can't really change the filetypes so please don't suggest that. 我不能真正更改文件类型,所以请不要建议。 在此处输入图片说明

Is there a way that I can configure Aptana Studios to recognize php in html files? 有没有一种方法可以配置Aptana Studios以识别html文件中的php?

Right click the file in the Project Explorer. 右键单击项目资源管理器中的文件。 Then choose Open With -> Other ... -> PHP Source Editor 然后选择Open With-> Other ...-> PHP Source Editor

Or if you want a more permanent solution. 或者,如果您需要更永久的解决方案。 Go to Preferences -> General -> Editors -> File Associations, then select *.html and add the PHP Source Editor and make it the default. 转到“首选项”->“常规”->“编辑器”->“文件关联”,然后选择* .html并添加PHP Source Editor,并将其设置为默认值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM