通過相應路徑找到Colors.xml文件把以下代碼斷覆蓋:
XP系統下:
C:Documents and SettingsAdministratorApplicationDataAdobeDreamweaver CS4zh_CNConfigurationCodeColoring
Win7系統下
C:用戶AdministratorAppDataRoamingAdobeDreamweaverCS5en_USConfigurationCodeColoring
覆蓋完成以後,發現背景並沒有改變,
覆蓋後還要執行:編輯->首選項參數(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