简体   繁体   English

更改代码配色方案-Dreamweaver CS6 Mac

[英]Change Code Color Scheme - Dreamweaver CS6 Mac

I find the standard color scheme for Adobe Dreamweaver to be aggravatingly bland and worthless. 我发现Adobe Dreamweaver的标准配色方案变得乏味而毫无价值。 I found a color scheme online that is supposed to imitate the ever popular Monokai code color scheme for Dreamweaver. 我在网上找到了一种配色方案,该配色方案应该模仿Dreamweaver曾经流行的Monokai代码配色方案。 The download is a .zip file that has a readme file and Colors.xml. 下载是一个.zip文件,其中包含一个自述文件和Colors.xml。 From what I've read, this process should be very simple: 根据我的阅读,该过程应该非常简单:

  1. Make sure Dreamweaver is closed. 确保Dreamweaver已关闭。
  2. Go to Dreamweaver's Configuration folder and then into the subfolder of Code Coloring. 转到Dreamweaver的“配置”文件夹,然后进入“代码着色”子文件夹。
  3. Rename the original Colors.xml file to something else. 将原始Colors.xml文件重命名为其他名称。
  4. Then copy and paste the new Colors.xml file into the folder and you should be good to go... 然后将新的Colors.xml文件复制并粘贴到该文件夹​​中,您应该会很好...

The problem is that I wasn't good to go because I opened up to see the same bright white color scheme with blue code. 问题是我不好走,因为我打开了看到带有蓝色代码的相同的明亮白色方案。 I read further that sometimes the above process doesn't work as described and that removing the original file and then replacing it with the color scheme you want will get it to work. 我进一步了解到,有时上述过程有时无法按说明进行,并且删除原始文件,然后将其替换为所需的配色方案将使其正常工作。 However, that didn't work either. 但是,那也不起作用。 Anything I do seems to have no effect on the color scheme... I'm becoming very impatient with this and am curious if anyone on here has any solutions? 我所做的任何事情似乎都不会对配色方案产生任何影响...我对此变得非常不耐烦,并且好奇是否有人在这里有解决方案?

If you want, you can create a custom theme by going to File > Preferences > Code Coloring. 如果需要,可以通过转到文件>首选项>代码着色来创建自定义主题。 Hopefully that helps and probably faster than importing a theme. 希望这可以帮助并且可能比导入主题更快。

In OS X, be sure you're in the CodeColoring folder in ~/Library and NOT in the Dreamweaver folder within Applications. 在OS X中,请确保您位于〜/ Library的CodeColoring文件夹中,而不是位于Applications的Dreamweaver文件夹中。 I can't tell from your post if you're in the right place for sure. 从您的帖子中我无法确定您是否来对地方了。 Try this: 尝试这个:

  1. Ensure Dreamweaver is closed 确保Dreamweaver已关闭
  2. Open a new Finder window. 打开一个新的Finder窗口。 Open the 'Go' menu at the top and hold down the alt/option key 打开顶部的“转到”菜单,并按住alt / option键
  3. The 'Library' option in the menu will appear, click it 菜单中的“库”选项将出现,单击它
  4. Then navigate to Application Support/Adobe/Dreamweaver CS4/en_US/Configuration/CodeColoring 然后导航到Application Support / Adob​​e / Dreamweaver CS4 / en_US / Configuration / CodeColoring
  5. Rename the file Colors.xml to 'Colors-backup.xml' – this is the original colour scheme, required to restore back to default 将文件Colors.xml重命名为'Colors-backup.xml'–这是原始的配色方案,需要还原为默认值
  6. Copy file colors.xml downloaded from this site into this location 从该站点下载的文件colors.xml复制到此位置
  7. Change default background color to #272822 (Dreamweaver –> Preferences –> Code Coloring -> Default Background) 将默认背景颜色更改为#272822(Dreamweaver –>首选项–>代码着色–>默认背景)

Are you sure you're seeing the exact same theme colors? 您确定看到的主题色完全相同吗? With the dark DW themes out there, you still need to manually change the background color after starting back up, see #7 above. 有了深色DW主题后,您仍然需要在启动备份后手动更改背景颜色,请参见上面的#7。 With a dark theme, all the text would've appeared very light on a white background, but would appear the way the theme intended after changing the bg color yourself. 如果主题为深色,则所有文本在白色背景上会显得很浅,但是您自己更改bg颜色后会以主题预期的方式显示。

Themes were just added in CC 2014.1, so they don't apply to you in CS6. 主题仅在CC 2014.1中添加,因此在CS6中不适用于您。

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

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