通过相应路径找到colors.xml文件把以下代码断覆盖:
xp系统下:
c:\documents and settings\administrator\applicationdata\adobe\dreamweaver cs4\zh_cn\configuration\codecoloring
win7系统下
c:\用户\administrator\appdata\roaming\adobe\dreamweavercs5\en_us\configuration\codecoloring
覆盖完成以后,发现背景并没有改变,
覆盖后还要执行:编辑->首选项参数(ctrl+u) -> 代码颜色-> html默认背景色改为:#3f3f3f,如果不合自己心意也可以在配色方案中进行更改。
(配色方案在下方预览窗口中直接点击寻找代码更改颜色)。
代码如下:
<codecolors>
<colorgroup>
<syntaxcolor id=codecolor_htmlentity bold=true />
<syntaxcolor id=codecolor_javascriptnative text=#009999 />
<syntaxcolor id=codecolor_javascriptnumber text=#ff0000 />
<syntaxcolor id=codecolor_javascriptclient text=#990099 />
<syntaxcolor id=codecolor_javascriptsprykeywords text=#ff6208 />
<syntaxcolor id=codecolor_javascriptspryclasses text=#ff6208 />
<syntaxcolor id=codecolor_templatetext text=#999999 />
<syntaxcolor id=codecolor_templatecommenttext text=#006600 />
<syntaxcolor id=codecolor_templatecommentattr text=#006600 />
<syntaxcolor id=codecolor_cfcommenttext text=#000000 bgcolor=#ffff99 />
<syntaxcolor id=codecolor_javajsp text=#009999 />
<syntaxcolor id=codecolor_javaimplicit text=#999900 />
<syntaxcolor id=codecolor_javaother text=#990099 />
<syntaxcolor id=codecolor_jsppageoperator text=#000000 />
<syntaxcolor id=codecolor_jsptagliboperator text=#000000 />
<syntaxcolor id=codecolor_jspincludeoperator text=#000000 />
<syntaxcolor id=codecolor_phpscriptblock text=#ff0000 bold=true />
<syntaxcolor id=codecolor_phpscriptcomment text=#ff9900 />
<syntaxcolor id=codecolor_phpscriptconstant text=#552200 />
<syntaxcolor id=codecolor_phpscriptstring text=#cc0000 />
<syntaxcolor id=codecolor_phpscriptfunctionskeywords text=#0000ff />
<syntaxcolor id=codecolor_phpscriptreserved text=#006600 />
<syntaxcolor id=codecolor_phpscripttypes text=#009999 />
<syntaxcolor id=codecolor_phpscriptvariables text=#0066ff />
<syntaxcolor id=codecolor_aspincludeattributes text=#990099 />
<syntaxcolor id=codecolor_aspdiroperator text=#000000 />
<syntaxcolor id=codecolor_librarytext bgcolor=#ffffcc />
<syntaxcolor id=codecolor_datetext bgcolor=#ffffcc />
<syntaxcolor id=codecolor_aspjsnative text=#009999 />
<syntaxcolor id=codecolor_aspjskeywords text=#990099 />
<syntaxcolor id=codecolor_aspnetcsharpkeywords text=#990099 />
<syntaxcolor id=codecolor_vbsnative text=#990099 />
<syntaxcolor id=codecolor_vbsconstants text=#009999 />
<syntaxcolor id=codecolor_vbnetnative text=#990099 />
<syntaxcolor id=codecolor_vbnetconstants text=#009999 />
<tagcolor id=codecolor_htmlanchor text=#006600 />
<tagcolor id=codecolor_htmlform text=#ff9900 />
<tagcolor id=codecolor_htmlimage text=#990099 />
<tagcolor id=codecolor_htmlobject text=#990000 />
<tagcolor id=codecolor_htmlscript text=#990000 />
<tagcolor id=codecolor_htmlstyle text=#990099 />
<tagcolor id=codecolor_htmltable text=#009999 />
<syntaxcolor id=codecolor_spryattributes text=#ff6208 />
<syntaxcolor id=codecolor_spry_tag_normal bgcolor=#f8d0af />
<syntaxcolor id=codecolor_spry_tag_hover bgcolor=#ff9b58 />
<syntaxcolor id=codecolor_spry_tag_selected bgcolor=#ff6d0c />
<syntaxcolor id=codecolor_htmlcomment text=#999999 />
<syntaxcolor id=codecolor_htmlstring text=#0000ff />
<syntaxcolor id=codecolor_htmlnumber text=#0000ff />
<syntaxcolor id=codecolor_javascriptfunction text=#000000 bold=true />
<syntaxcolor id=codecolor_javascriptbracket text=#000099 bold=true />
<syntaxcolor id=codecolor_javascriptreserved text=#000099 bold=true />
<syntaxcolor id=codecolor_javascriptstring text=#0000ff />
<syntaxcolor id=codecolor_javascriptcomment text=#999999 />
<syntaxcolor id=codecolor_cssselector text=#ff00ff />
<syntaxcolor id=codecolor_cssproperty text=#000099 />
<syntaxcolor id=codecolor_cssvalue text=#0000ff />
<syntaxcolor id=codecolor_cssimport text=#009999 bold=true />
<syntaxcolor id=codecolor_cssmedia text=#990000 bold=true />
<syntaxcolor id=codecolor_csskeywordimportant text=#ff0000 bold=true />
<tagcolor id=dwtaglibrary_cfc text=#990033 />
<tagcolor id=dwtaglibrary_cfml text=#990033 />
<syntaxcolor id=codecolor_aspdirtagkeywords text=#990033 />
<tagcolor id=dwtaglibrary_aspnetmmtags text=#990033 />
<tagcolor id=dwtaglibrary_aspnettemplates text=#990033 />
<tagcolor id=dwtaglibrary_aspnet text=#990033 />
<tagcolor id=codecolor_cfscripttag text=#990033 />
<syntaxcolor id=codecolor_aspdirstring text=#0000ff />
<syntaxcolor id=codecolor_actionscriptproperty text=#000084 />
<syntaxcolor id=codecolor_actionscriptnative text=#000084 />
<syntaxcolor id=codecolor_actionscriptnumber text=#000000 />
<syntaxcolor id=codecolor_actionscriptfunction text=#000084 />
<syntaxcolor id=codecolor_actionscriptbracket text=#000000 />
<syntaxcolor id=codecolor_actionscriptoperator text=#000000 />
<syntaxcolor id=codecolor_actionscriptreserved text=#000084 />
<syntaxcolor id=codecolor_actionscriptstring text=#0000ff />
<syntaxcolor id=codecolor_actionscriptcomment text=#848284 />
<syntaxcolor id=codecolor_actionscriptremoting text=#000084 />
<syntaxcolor id=codecolor_ascommbracket text=#000099 bold=true />
<syntaxcolor id=codecolor_ascommcomment text=#999999 />
<syntaxcolor id=codecolor_ascommfunction text=#000000 bold=true />
<syntaxcolor id=codecolor_ascommnative text=#009999 />
<syntaxcolor id=codecolor_ascommnumber text=#ff0000 />
<syntaxcolor id=codecolor_ascommreserved text=#000099 />
<syntaxcolor id=codecolor_ascommstring text=#0000ff />
<syntaxcolor id=codecolor_asremotebracket text=#000099 bold=true />
<syntaxcolor id=codecolor_asremotecomment text=#999999 />
<syntaxcolor id=codecolor_asremotefunction text=#000000 bold=true />
<syntaxcolor id=codecolor_asremotenative text=#009999 />
<syntaxcolor id=codecolor_asremotenumber text=#ff0000 />
<syntaxcolor id=codecolor_asremotereserved text=#000099 />
<syntaxcolor id=codecolor_asremotestring text=#0000ff />
</colorgroup>
<colorgroup doctypes=css>
<syntaxcolor id=codecolor_cssimport text=#666 bold=true />
<syntaxcolor id=codecolor_cssmedia text=#900 bold=true />
<syntaxcolor id=codecolor_csskeywordimportant text=#f00 bold=true />
<syntaxcolor id=codecolor_cssselector text=#7cb7f1 />
<syntaxcolor id=codecolor_cssvalue text=#f0eb8e />
<syntaxcolor id=codecolor_cssproperty text=#8fe28f />
<syntaxcolor id=codecolor_csscomment text=#ccc />
<syntaxcolor id=codecolor_cssstring text=#ff0 />
</colorgroup>
<colorgroup doctypes=html>
<syntaxcolor id=codecolor_aspincludedirdefaulttext text=#000 />
<syntaxcolor id=codecolor_aspincludeattributes text=#909 />
<syntaxcolor id=codecolor_aspincludestring text=#060 />
<tagcolor id=codecolor_cfscripttag text=#903 />
<syntaxcolor id=codecolor_cssimport text=#666 bold=true />
<syntaxcolor id=codecolor_cssmedia text=#cc0 />
<syntaxcolor id=codecolor_csskeywordimportant text=#ff0 />
<syntaxcolor id=codecolor_cssselector text=#8fe28f />
<syntaxcolor id=codecolor_cssvalue text=#b44781 />
<syntaxcolor id=codecolor_cssproperty text=#7e9f74 />
<syntaxcolor id=codecolor_csscomment text=#bbb />
<syntaxcolor id=codecolor_cssstring text=#db0057 />
<tagcolor id=codecolor_htmlanchor text=#6db7f1 />
<tagcolor id=codecolor_htmlform text=#f90 />
<tagcolor id=codecolor_htmlimage text=#b44781 />
<tagcolor id=codecolor_htmlobject text=#900 />
<tagcolor id=codecolor_htmlscript text=#ff0 />
<tagcolor id=codecolor_htmlstyle text=#ff0 />
<tagcolor id=codecolor_htmltable text=#62b773 />
<tagcolor id=dwtaglibrary_html text=#8fe27b />
<syntaxcolor id=codecolor_htmltag text=#bbb />
<syntaxcolor id=codecolor_htmlnumber text=#fff />
<syntaxcolor id=codecolor_htmlentity text=#666 bold=true />
<syntaxcolor id=codecolor_htmltext text=#c3d3d7 />
<syntaxcolor id=codecolor_htmlstring text=#f0eb8e />
<syntaxcolor id=codecolor_htmlcomment text=#bbb />
<syntaxcolor id=codecolor_javascriptregexp text=#060 />
<syntaxcolor id=codecolor_javascriptreserved text=#cc0 bold=true />
<syntaxcolor id=codecolor_javascriptnative text=#099 />
<syntaxcolor id=codecolor_javascriptidentifier text=#9c0 />
<syntaxcolor id=codecolor_javascriptfunction text=#fff bold=true />
<syntaxcolor id=codecolor_javascriptclient text=#9c0 />
<syntaxcolor id=codecolor_javascriptbracket text=#fff bold=true />
<syntaxcolor id=codecolor_javascriptdefaulttext text=#fff />
<syntaxcolor id=codecolor_javascriptnumber text=#b44781 />
<syntaxcolor id=codecolor_javascriptoperator text=#cc0 />
<syntaxcolor id=codecolor_javascriptcomment text=#bbb />
<syntaxcolor id=codecolor_javascriptstring text=#68a2b0 />
<tagcolor id=dwtaglibrary_templates text=#009 />
<syntaxcolor id=codecolor_librarytext text=#000 bgcolor=#ffc />
<syntaxcolor id=codecolor_datetext text=#000 bgcolor=#ffc />
<syntaxcolor id=codecolor_templatetext text=#999 />
<syntaxcolor id=codecolor_templatecommenttext text=#060 />
<syntaxcolor id=codecolor_templatecommentattr text=#060 />
</colorgroup>
</codecolors>