简体   繁体   English

Dreamweaver CS4 Mac中的颜色代码.inc

[英]Color Code .inc in Dreamweaver CS4 Mac

I have done this in all my previous versions, but I can't get it working in CS4. 我在以前的所有版本中都做过这个,但我无法在CS4中使用它。 I have updated the MMDocumentTypes.xml file to add inc to the php section. 我已更新MMDocumentTypes.xml文件以将inc添加到php部分。 Restarting Dreamweaver does not help. 重新启动Dreamweaver没有帮助。 I even updated the Extensions.txt file, and that still does not work. 我甚至更新了Extensions.txt文件,但仍然无效。

Has anyone had this issue? 有人有这个问题吗?

There's a workaround to do that on Windows: 在Windows上有一个解决方法:
https://superuser.com/questions/115614/how-make-dreamweaver-color-the-code-as-php-for-inc-files https://superuser.com/questions/115614/how-make-dreamweaver-color-the-code-as-php-for-inc-files
Not sure if it's working on Mac too. 不确定它是否也适用于Mac。 Also here's a video tutorial . 这里还有一个视频教程

update: It's working on Mac, too. 更新: 它也在Mac上运行。

I've had this same issue, but on a mac on cs5.5 - For the life of me, I couldn't get it to work, but then I read that there are actually 4 files that need to be edited. 我有同样的问题,但在cs5.5上的mac上 - 对于我的生活,我无法让它工作,但后来我读到实际上有4个文件需要编辑。

~/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/DocumentTypes/MMDocumentTypes.xml

~/Library/Application Support/Adobe/Dreamweaver CS5.5/en_US/Configuration/Extensions.txt

and

Applications/Adobe Dreamweaver CS5.5/Configuration/DocumentTypes/MMDocumentTypes.xml

Applications/Adobe Dreamweaver CS5.5/Configuration/Extensions.txt

On a mac at least, the trouble was that the ~/Library/ files are hidden by default. 至少在Mac上,麻烦的是〜/ Library /文件默认是隐藏的。 So I had to unhide them via terminal, then make the changes. 所以我不得不通过终端取消隐藏它们,然后进行更改。

It now works. 它现在有效。

I hope that helps at least a little. 我希望至少有一点帮助。 Good luck! 祝好运!

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

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