dreamweaver cc 代码配色方案

    因为dreamweaver cc的代码配色方案有点过于费眼,看到现在好多人写代码都喜欢使用深色背景的代码方案。毕竟深色背景在夜间编写代码比较让人容易专注,我个人比较喜欢#22252C作为代码背景色。

    在深背景色的同时,代码最好用亮色,对于深蓝、深灰等颜色都不容易在深背景下辨认,所以我自己改了一套颜色代码,纯粹属于个人喜好,大家可以按照下面的步骤进行修改。

    先来看一下修改后的效果:

dreamweaver cc 代码配色方案_第1张图片

    修改dreamweaver cc配色方案步骤:

    1、关闭dreamweaver cc,然后打开“%UserProFile%\Application Data\Adobe\Dreamweaver CC 2014\zh_CN\Configuration\CodeColoring"这个地址。

    2、里面有一个Colors.xml文件,先将此文件复制一个备份。

    3、用记事本开打Colors.xml文件,将以下代码全部复制,替换Colors.xml文件中原有的代码,保存关闭。

<codeColors>
    <colorGroup>
        <syntaxColor id="CodeColor_ActionscriptBracket" text="#000000" />
        <syntaxColor id="CodeColor_ActionscriptComment" text="#848284" />
        <syntaxColor id="CodeColor_ActionscriptFunction" text="#000084" />
        <syntaxColor id="CodeColor_ActionscriptNative" text="#000084" />
        <syntaxColor id="CodeColor_ActionscriptNumber" text="#000000" />
        <syntaxColor id="CodeColor_ActionscriptOperator" text="#000000" />
        <syntaxColor id="CodeColor_ActionscriptProperty" text="#000084" />
        <syntaxColor id="CodeColor_ActionscriptRemoting" text="#000084" />
        <syntaxColor id="CodeColor_ActionscriptReserved" text="#000084" />
        <syntaxColor id="CodeColor_ActionscriptString" text="#0000FF" />
        <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_ASPDirOperator" text="#000000" />
        <syntaxColor id="CodeColor_ASPDirString" text="#0000FF" />
        <syntaxColor id="CodeColor_ASPDirTagKeywords" text="#990033" />
        <syntaxColor id="CodeColor_ASPIncludeAttributes" text="#990099" />
        <syntaxColor id="CodeColor_ASPJSKeywords" text="#990099" />
        <syntaxColor id="CodeColor_ASPJSNative" text="#009999" />
        <syntaxColor id="CodeColor_ASPNetCSharpKeywords" text="#990099" />
        <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" />
        <syntaxColor id="CodeColor_CFCommentText" text="#000000" />
        <syntaxColor id="CodeColor_CSSImport" text="#009999" bold="true" />
        <syntaxColor id="CodeColor_CssKeywordImportant" text="#FF0000" bold="true" />
        <syntaxColor id="CodeColor_CSSMedia" text="#990000" bold="true" />
        <syntaxColor id="CodeColor_CSSProperty" text="#000099" />
        <syntaxColor id="CodeColor_CSSSelector" text="#FF00FF" />
        <syntaxColor id="CodeColor_CSSValue" text="#0000FF" />
        <syntaxColor id="CodeColor_DateText" bgcolor="#FFFFCC" />
        <syntaxColor id="CodeColor_HTMLComment" text="#999999" />
        <syntaxColor id="CodeColor_HTMLEntity" bold="true" />
        <syntaxColor id="CodeColor_HTMLNumber" text="#0000FF" />
        <syntaxColor id="CodeColor_HTMLString" text="#0000FF" />
        <syntaxColor id="CodeColor_JavaImplicit" text="#999900" />
        <syntaxColor id="CodeColor_JavaJSP" text="#009999" />
        <syntaxColor id="CodeColor_JavaOther" text="#990099" />
        <syntaxColor id="CodeColor_JavascriptBracket" text="#0FF" bold="true" />
        <syntaxColor id="CodeColor_JavascriptClient" text="#C33" />
        <syntaxColor id="CodeColor_JavascriptComment" text="#666" italic="true" />
        <syntaxColor id="CodeColor_JavaScriptDefaultText" text="#FFF" />
        <syntaxColor id="CodeColor_JavascriptFunction" text="#FF0" bold="true" />
        <syntaxColor id="CodeColor_JavascriptIdentifier" text="#CCC" bold="false" />
        <syntaxColor id="CodeColor_JavascriptNative" text="#0CF" />
        <syntaxColor id="CodeColor_JavascriptNumber" text="#3F3" />
        <syntaxColor id="CodeColor_JavascriptOperator" text="#FF0" />
        <syntaxColor id="CodeColor_JavascriptRegexp" text="#CC0" />
        <syntaxColor id="CodeColor_JavascriptReserved" text="#F9F" bold="true" />
        <syntaxColor id="CodeColor_JavascriptString" text="#F90" />
        <syntaxColor id="CodeColor_JSPIncludeOperator" text="#000000" />
        <syntaxColor id="CodeColor_JSPPageOperator" text="#000000" />
        <syntaxColor id="CodeColor_JSPTaglibOperator" text="#000000" />
        <syntaxColor id="CodeColor_LibraryText" bgcolor="#FFFFCC" />
        <syntaxColor id="CodeColor_PHPScriptBlock" text="#FF0000" bold="true" />
        <syntaxColor id="CodeColor_PHPScriptComment" text="#FF9900" />
        <syntaxColor id="CodeColor_PHPScriptConstant" text="#552200" />
        <syntaxColor id="CodeColor_PHPScriptFunctionsKeywords" text="#0000FF" />
        <syntaxColor id="CodeColor_PHPScriptReserved" text="#006600" />
        <syntaxColor id="CodeColor_PHPScriptString" text="#CC0000" />
        <syntaxColor id="CodeColor_PHPScriptTypes" text="#009999" />
        <syntaxColor id="CodeColor_PHPScriptVariables" text="#0066FF" />
        <syntaxColor id="CodeColor_Spry_Tag_Hover" bgcolor="#FF9B58" />
        <syntaxColor id="CodeColor_Spry_Tag_Normal" bgcolor="#F8DOAF" />
        <syntaxColor id="CodeColor_Spry_Tag_Selected" bgcolor="#FF6D0C" />
        <syntaxColor id="CodeColor_SpryAttributes" text="#FF6208" />
        <syntaxColor id="CodeColor_TemplateCommentAttr" text="#006600" />
        <syntaxColor id="CodeColor_TemplateCommentText" text="#006600" />
        <syntaxColor id="CodeColor_TemplateText" text="#999999" />
        <syntaxColor id="CodeColor_VBNetConstants" text="#009999" />
        <syntaxColor id="CodeColor_VBNetNative" text="#990099" />
        <syntaxColor id="CodeColor_VBSConstants" text="#009999" />
        <syntaxColor id="CodeColor_VBSNative" text="#990099" />
        <tagColor id="CodeColor_CFScriptTag" text="#990033" />
        <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" />
        <tagColor id="DWTagLibrary_aspnet" text="#990033" />
        <tagColor id="DWTagLibrary_aspnetmmtags" text="#990033" />
        <tagColor id="DWTagLibrary_aspnettemplates" text="#990033" />
        <tagColor id="DWTagLibrary_cfc" text="#990033" />
        <tagColor id="DWTagLibrary_cfml" text="#990033" />
    </colorGroup>
    <colorGroup doctypes="PHP_MySQL">
        <syntaxColor id="CodeColor_CSSComment" text="#999" />
        <syntaxColor id="CodeColor_CSSImport" text="#099" bold="true" />
        <syntaxColor id="CodeColor_CssKeywordImportant" text="#E77E7E" bold="true" />
        <syntaxColor id="CodeColor_CSSMedia" text="#900" bold="true" />
        <syntaxColor id="CodeColor_CSSProperty" text="#FC0" />
        <syntaxColor id="CodeColor_CSSSelector" text="#3CF" />
        <syntaxColor id="CodeColor_CSSString" text="#FC3" />
        <syntaxColor id="CodeColor_CSSValue" text="#9F3" />
        <syntaxColor id="CodeColor_DateText" text="#333" bgcolor="#FFC" />
        <syntaxColor id="CodeColor_HTMLComment" text="#666" italic="true" />
        <syntaxColor id="CodeColor_HTMLEntity" text="#FFF" bold="true" />
        <syntaxColor id="CodeColor_HTMLNumber" text="#39F" />
        <syntaxColor id="CodeColor_HTMLString" text="#09F" />
        <syntaxColor id="CodeColor_HTMLTag" text="#0FF" />
        <syntaxColor id="CodeColor_HTMLText" text="#FFF" />
        <syntaxColor id="CodeColor_JavascriptBracket" text="#0FF" bold="true" />
        <syntaxColor id="CodeColor_JavascriptClient" text="#C33" />
        <syntaxColor id="CodeColor_JavascriptComment" text="#666" italic="true" />
        <syntaxColor id="CodeColor_JavaScriptDefaultText" text="#FFF" />
        <syntaxColor id="CodeColor_JavascriptFunction" text="#FF0" bold="true" />
        <syntaxColor id="CodeColor_JavascriptIdentifier" text="#CCC" bold="false" />
        <syntaxColor id="CodeColor_JavascriptNative" text="#0CF" />
        <syntaxColor id="CodeColor_JavascriptNumber" text="#3F3" />
        <syntaxColor id="CodeColor_JavascriptOperator" text="#FF0" />
        <syntaxColor id="CodeColor_JavascriptRegexp" text="#CC0" />
        <syntaxColor id="CodeColor_JavascriptReserved" text="#F9F" bold="true" />
        <syntaxColor id="CodeColor_JavascriptString" text="#F90" />
        <syntaxColor id="CodeColor_LibraryText" text="#666" bgcolor="#FFC" />
        <syntaxColor id="CodeColor_PHPScriptBlock" text="#F00" bold="true" />
        <syntaxColor id="CodeColor_PHPScriptBracket" text="#C90" />
        <syntaxColor id="CodeColor_PHPScriptComment" text="#F8FF00" italic="false" />
        <syntaxColor id="CodeColor_PHPScriptConstant" text="#F33" />
        <syntaxColor id="CodeColor_PhpScriptDefaultText" text="#CCC" />
        <syntaxColor id="CodeColor_PHPScriptFunction" text="#09F" />
        <syntaxColor id="CodeColor_PHPScriptFunctionsKeywords" text="#0CF" />
        <syntaxColor id="CodeColor_PHPScriptIdentifier" text="#B9B9B9" />
        <syntaxColor id="CodeColor_PHPScriptNumber" text="#FFF" bold="true" />
        <syntaxColor id="CodeColor_PHPScriptOperator" text="#FFF" bold="false" />
        <syntaxColor id="CodeColor_PHPScriptReserved" text="#D83DFF" />
        <syntaxColor id="CodeColor_PHPScriptString" text="#F90" />
        <syntaxColor id="CodeColor_PHPScriptTypes" text="#0CC" />
        <syntaxColor id="CodeColor_PHPScriptVariables" text="#F00" bold="true" />
        <tagColor id="CodeColor_CFScriptTag" text="#F33" />
        <tagColor id="CodeColor_HTMLAnchor" text="#3CC" underline="false" />
        <tagColor id="CodeColor_HTMLForm" text="#FC0" />
        <tagColor id="CodeColor_HTMLImage" text="#C0C" />
        <tagColor id="CodeColor_HTMLObject" text="#F33" />
        <tagColor id="CodeColor_HTMLScript" text="#C33" />
        <tagColor id="CodeColor_HTMLStyle" text="#F9F" />
        <tagColor id="CodeColor_HTMLTable" text="#69C" />
        <tagColor id="CodeColor_SVGTagGroup" text="#009" />
        <tagColor id="DWTagLibrary_html" text="#6C3" />
        <tagColor id="DWTagLibrary_templates" text="#06C" />
        <syntaxColor id="CodeColor_PHPScriptBuiltinVariables" text="#F9C" />
        <syntaxColor id="CodeColor_SVGTag" text="#009" />
        <syntaxColor id="CodeColor_SVGAttr" text="#009" />
        <syntaxColor id="CodeColor_SVGString" text="#060" />
        <syntaxColor id="CodeColor_SVGNumber" text="#F00" />
        <syntaxColor id="CodeColor_SVGText" text="#000" />
        <syntaxColor id="CodeColor_SVGComment" text="#999" />
        <syntaxColor id="CodeColor_TemplateText" text="#999" />
        <syntaxColor id="CodeColor_TemplateCommentText" text="#060" />
        <syntaxColor id="CodeColor_TemplateCommentAttr" text="#060" />
        <tagColor id="DWTagLibrary_php" text="#4B4BB1" />
    </colorGroup>
    <colorGroup doctypes="HTML">
        <syntaxColor id="CodeColor_ASPIncludeAttributes" text="#909" />
        <syntaxColor id="CodeColor_AspIncludeDirDefaultText" text="#000" />
        <syntaxColor id="CodeColor_ASPIncludeString" text="#060" />
        <syntaxColor id="CodeColor_CSSComment" text="#666" italic="true" />
        <syntaxColor id="CodeColor_CSSImport" text="#9C0" bold="true" bgcolor="#333" />
        <syntaxColor id="CodeColor_CssKeywordImportant" text="#F00" bold="true" />
        <syntaxColor id="CodeColor_CSSMedia" text="#F30" bold="true" bgcolor="#333" />
        <syntaxColor id="CodeColor_CSSProperty" text="#09F" />
        <syntaxColor id="CodeColor_CSSSelector" text="#F9F" />
        <syntaxColor id="CodeColor_CSSString" text="#FC3" />
        <syntaxColor id="CodeColor_CSSValue" text="#6F9" />
        <syntaxColor id="CodeColor_DateText" text="#000" bgcolor="#FFC" />
        <syntaxColor id="CodeColor_HTMLComment" text="#666" italic="true" />
        <syntaxColor id="CodeColor_HTMLEntity" text="#FFF" bold="true" italic="true" />
        <syntaxColor id="CodeColor_HTMLNumber" text="#39F" />
        <syntaxColor id="CodeColor_HTMLString" text="#999" />
        <syntaxColor id="CodeColor_HTMLTag" text="#99F" />
        <syntaxColor id="CodeColor_HTMLText" text="#CCC" />
        <syntaxColor id="CodeColor_JavascriptBracket" text="#0FF" bold="true" />
        <syntaxColor id="CodeColor_JavascriptClient" text="#C33" />
        <syntaxColor id="CodeColor_JavascriptComment" text="#666" italic="true" />
        <syntaxColor id="CodeColor_JavaScriptDefaultText" text="#FFF" />
        <syntaxColor id="CodeColor_JavascriptFunction" text="#FF0" bold="true" />
        <syntaxColor id="CodeColor_JavascriptIdentifier" text="#CCC" bold="false" />
        <syntaxColor id="CodeColor_JavascriptNative" text="#0CF" />
        <syntaxColor id="CodeColor_JavascriptNumber" text="#3F3" />
        <syntaxColor id="CodeColor_JavascriptOperator" text="#FF0" />
        <syntaxColor id="CodeColor_JavascriptRegexp" text="#CC0" />
        <syntaxColor id="CodeColor_JavascriptReserved" text="#F9F" bold="true" />
        <syntaxColor id="CodeColor_JavascriptString" text="#F90" />
        <syntaxColor id="CodeColor_LibraryText" text="#FFF" bgcolor="#FFC" />
        <syntaxColor id="CodeColor_SVGAttr" text="#009" />
        <syntaxColor id="CodeColor_SVGComment" text="#999" />
        <syntaxColor id="CodeColor_SVGNumber" text="#F00" />
        <syntaxColor id="CodeColor_SVGString" text="#060" />
        <syntaxColor id="CodeColor_SVGTag" text="#009" />
        <syntaxColor id="CodeColor_SVGText" text="#000" />
        <syntaxColor id="CodeColor_TemplateCommentAttr" text="#060" />
        <syntaxColor id="CodeColor_TemplateCommentText" text="#060" />
        <syntaxColor id="CodeColor_TemplateText" text="#999" />
        <tagColor id="CodeColor_CFScriptTag" text="#F33" />
        <tagColor id="CodeColor_HTMLAnchor" text="#3CC" underline="false" />
        <tagColor id="CodeColor_HTMLForm" text="#FC0" />
        <tagColor id="CodeColor_HTMLImage" text="#C0C" />
        <tagColor id="CodeColor_HTMLObject" text="#F33" />
        <tagColor id="CodeColor_HTMLScript" text="#C33" />
        <tagColor id="CodeColor_HTMLStyle" text="#F9F" />
        <tagColor id="CodeColor_HTMLTable" text="#55B0F4" />
        <tagColor id="CodeColor_SVGTagGroup" text="#009" />
        <tagColor id="DWTagLibrary_html" text="#6C3" />
        <tagColor id="DWTagLibrary_templates" text="#06C" />
    </colorGroup>
    <colorGroup doctypes="JavaScript">
        <syntaxColor id="CodeColor_JavascriptBracket" text="#0FF" bold="true" />
        <syntaxColor id="CodeColor_JavascriptClient" text="#C33" />
        <syntaxColor id="CodeColor_JavascriptComment" text="#666" italic="true" />
        <syntaxColor id="CodeColor_JavaScriptDefaultText" text="#FFF" />
        <syntaxColor id="CodeColor_JavascriptFunction" text="#FF0" bold="true" />
        <syntaxColor id="CodeColor_JavascriptIdentifier" text="#CCC" bold="false" />
        <syntaxColor id="CodeColor_JavascriptNative" text="#0CF" />
        <syntaxColor id="CodeColor_JavascriptNumber" text="#3F3" />
        <syntaxColor id="CodeColor_JavascriptOperator" text="#FF0" />
        <syntaxColor id="CodeColor_JavascriptRegexp" text="#CC0" />
        <syntaxColor id="CodeColor_JavascriptReserved" text="#F9F" bold="true" />
        <syntaxColor id="CodeColor_JavascriptString" text="#F90" />
    </colorGroup>
    <colorGroup doctypes="CSS">
        <syntaxColor id="CodeColor_CSSImport" text="#C33" bold="true" />
        <syntaxColor id="CodeColor_CSSMedia" text="#F0F" bold="true" />
        <syntaxColor id="CodeColor_CSSComment" text="#666" italic="true" />
        <syntaxColor id="CodeColor_CssKeywordImportant" text="#F00" bold="true" />
        <syntaxColor id="CodeColor_CSSProperty" text="#09F" />
        <syntaxColor id="CodeColor_CSSSelector" text="#F9F" />
        <syntaxColor id="CodeColor_CSSString" text="#FC3" />
        <syntaxColor id="CodeColor_CSSValue" text="#6F9" />
    </colorGroup>
    <colorGroup doctypes="XML">
        <syntaxColor id="CodeColor_TemplateCommentAttr" text="#060" />
        <syntaxColor id="CodeColor_TemplateCommentText" text="#060" />
        <syntaxColor id="CodeColor_TemplateText" text="#999" />
        <syntaxColor id="CodeColor_XMLComment" text="#666" />
        <syntaxColor id="CodeColor_XMLNumber" text="#F6F" />
        <syntaxColor id="CodeColor_XMLString" text="#F9F" />
        <syntaxColor id="CodeColor_XMLTag" text="#3CF" />
        <syntaxColor id="CodeColor_XMLText" text="#6F3" />
        <tagColor id="CodeColor_CFScriptTag" text="#936" />
        <tagColor id="CodeColor_HTMLAnchor" text="#9F3" />
        <tagColor id="CodeColor_HTMLForm" text="#FC3" />
        <tagColor id="CodeColor_HTMLImage" text="#96C" />
        <tagColor id="CodeColor_HTMLObject" text="#C69" />
        <tagColor id="CodeColor_HTMLScript" text="#C36" />
        <tagColor id="CodeColor_HTMLStyle" text="#96C" />
        <tagColor id="CodeColor_HTMLTable" text="#0CF" />
        <tagColor id="CodeColor_SVGTagGroup" text="#009" />
    </colorGroup>
    <colorGroup doctypes="Text">
        <syntaxColor id="CodeColor_TextText" text="#CCC" />
    </colorGroup>
</codeColors>

    4、开打dreamweaver cc,点击菜单栏中编辑→首选项,在首选项面板中选择“代码颜色”,将代码“默认背景”和“实时代码背景”的颜色改为#22252C,如下图:

dreamweaver cc 代码配色方案_第2张图片

    5、如果对代码颜色不满意,可以选择上面的“文件类型”,然后点击“编辑颜色方案”,对各代码颜色进行修改。如下图:

dreamweaver cc 代码配色方案_第3张图片


你可能感兴趣的:(PHP,代码,Dreamweaver,配色)