如何恢复 Dreamweaver CS4 中的本机 javascript 代码着色?
我最近安装了 Adobe Dreamweaver CS4。当我尝试用 javascript 编写代码时,我所有的代码都是用粉红色字体编写的。我检查了我的首选项 >代码着色然后选择 Javascript。我很惊讶地发现它只识别 3 种类型的代码:jQuery 标识符、jQuery 关键字和方法、jQuery 对象。我编写了 jQuery 代码,但我想查看我的安装过程中以前的颜色编码(Macromedia Dreamweaver 版本 XX)。我可以做什么来恢复或添加这些本机代码类型,以便我可以设置它们的语法颜色。我只是习惯于看到这些代码有更多的颜色编码。提前致谢!
I recently installed Adobe Dreamweaver CS4. When I tried to code in javascript, all my code is written in pink font. I checked my Preferences > Code Coloring then choose Javascript. I was surprised to see that it only recognizes 3 types of code: jQuery Identifiers, jQuery Keywords and Methods, jQuery objects. I do code jQuery, but I want to see the previous color coding from my pass Installation (Macromedia Dreamweaver version XX). What can I do to revert or add these native code types so I can set their syntax color. I'm just used to seeing these codes more color-coded. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我问这个问题是因为当我打开 JavaScript 代码着色选项时,我有以下选项:
我刚刚检查过在 CS4 和 CS5 中,并且这些条目都存在于两者中,但没有 jQuery 的条目。您是否安装了提供 jQuery 支持(至少是代码着色)的扩展?如果有,那么我建议您卸载它,修改可能会恢复。
如果您已卸载该扩展,或者没有安装扩展,并且代码着色仍然有问题,要恢复到 Dreamweaver 中内置的原始代码着色,您可能需要执行此页面上的步骤 12:
http://kb2.adobe.com/cps/191/tn_19105.html
对于 CS4 和 CS5,要删除的文件夹将包含配置文件夹所在的“语言”文件夹。在我的 CS5 Vista 系统上,它位于:
C:\Users[用户名]\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\configuration\
I ask because I have the following options when I open up the JavaScript code coloring options:
I just checked in CS4 and CS5 and those entries are present in both, there are no entries for jQuery. Have you installed an extension that provides jQuery support (at least code coloring)? If you have, then I'd suggest you uninstalling it and the modifications may be reverted.
If you have uninstalled the extension, or if you don't have an extension installed, and the code coloring is still awry, to get back to the original code coloring that's built into Dreamweaver, you may need to perform step 12 on this page:
http://kb2.adobe.com/cps/191/tn_19105.html
For CS4 and CS5, the folder to remove will have a "language" folder that the Configuration folder is within. On my Vista system for CS5, it's at:
C:\Users[username]\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\configuration\