先看看效果吧:

分享一下自己的sublime-text配色_html

分享一下自己的sublime-text配色_xml_02

这种方案的配色文件如下:


<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict>  <key>author</key>  <string>William D. Neumann</string>  <key>name</key>  <string>Zenburnesque</string>  <key>settings</key>  <array>   <dict>    <key>settings</key>    <dict>     <key>background</key>     <string>#000000</string>     <key>caret</key>     <string>#11EE11</string>     <key>foreground</key>     <string>#11EE11</string>      <key>invisibles</key>     <string>#A8A8A8</string>     <key>lineHighlight</key>     <string>#CC66FF</string>     <key>selection</key>     <string>#474747</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Comment</string>    <key>scope</key>    <string>comment</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>italic</string>     <key>foreground</key>     <string>#0066FF</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Directive</string>    <key>scope</key>    <string>keyword.other.directive</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>bold</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Line-number directives</string>    <key>scope</key>    <string>keyword.other.directive.line-number</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>underline</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Characters</string>    <key>scope</key>    <string>constant.character</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FF33CC</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>String</string>    <key>scope</key>    <string>string</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FF33CC</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Number</string>    <key>scope</key>    <string>constant.numeric</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FF33CC</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Floating-point numbers</string>    <key>scope</key>    <string>constant.numeric.floating-point</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>underline</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Built-in constant</string>    <key>scope</key>    <string>constant.language</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>User-defined constant</string>    <key>scope</key>    <string>constant.character, constant.other</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Variable</string>    <key>scope</key>    <string>variable.parameter, variable.other</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Language Keyword</string>    <key>scope</key>    <string>keyword</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FFFF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Module Keyword</string>    <key>scope</key>    <string>entity.name.module,  support.other.module</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>bold</string>     <key>foreground</key>     <string>#FFFF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Operators</string>    <key>scope</key>    <string>keyword.operator</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FFFF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Floating-point infix operators</string>    <key>scope</key>    <string>source.ocaml keyword.operator.symbol.infix.floating-point</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>underline</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Floating-point prefix operators</string>    <key>scope</key>    <string>source.ocaml keyword.operator.symbol.prefix.floating-point</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>underline</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Storage Types</string>    <key>scope</key>    <string>storage.type</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FFFF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Variant Types</string>    <key>scope</key>    <string>entity.name.class.variant</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FFFF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Storage</string>    <key>scope</key>    <string>storage</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Type name</string>    <key>scope</key>    <string>entity.name.type</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#00FFFF</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Inherited class</string>    <key>scope</key>    <string>entity.other.inherited-class</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Function name</string>    <key>scope</key>    <string>entity.name.function</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>bold</string>     <key>foreground</key>     <string>#FF9933</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Type name</string>    <key>scope</key>    <string>storage.type.user-defined</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#00FF99</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Class type name</string>    <key>scope</key>    <string>entity.name.type.class.type</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#00FF99</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Function argument</string>    <key>scope</key>    <string>variable.parameter</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Tag name</string>    <key>scope</key>    <string>entity.name.tag</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Tag attribute</string>    <key>scope</key>    <string>entity.other.attribute-name</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Library function</string>    <key>scope</key>    <string>support.function</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Library constant</string>    <key>scope</key>    <string>support.constant</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Library class/type</string>    <key>scope</key>    <string>support.type, support.class</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Library variable</string>    <key>scope</key>    <string>support.variable</string>    <key>settings</key>    <dict/>   </dict>   <dict>    <key>name</key>    <string>Invalid</string>    <key>scope</key>    <string>invalid</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#B90690</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Function argument and result types</string>    <key>scope</key>    <string>storage.type.method</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#FF99CC</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Library function</string>    <key>scope</key>    <string>support.function</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>bold</string>     <key>foreground</key>     <string>#00FFFF</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Library object</string>    <key>scope</key>    <string>support.class, support.type</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>bold</string>     <key>foreground</key>     <string>#00FFFF</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Library constant</string>    <key>scope</key>    <string>support.constant</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>bold</string>     <key>foreground</key>     <string>#FF33CC</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Library variable</string>    <key>scope</key>    <string>support.variable</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>bold</string>     <key>foreground</key>     <string>#00FFCC</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>JS: Operator</string>    <key>scope</key>    <string>keyword.operator.js</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FFFF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Invalid</string>    <key>scope</key>    <string>invalid</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#000000</string>     <key>foreground</key>     <string>#FF0000</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Invalid trailing whitespace</string>    <key>scope</key>    <string>invalid.deprecated.trailing-whitespace</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#000000</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Embedded source</string>    <key>scope</key>    <string>text source, string.unquoted</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#00FF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Embedded embedded source</string>    <key>scope</key>    <string>text source string.unquoted, text source text source</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#00FF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Markup XML declaration</string>    <key>scope</key>    <string>meta.tag.preprocessor.xml</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#00FF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Markup DOCTYPE</string>    <key>scope</key>    <string>meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#00FF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Markup DTD</string>    <key>scope</key>    <string>string.quoted.docinfo.doctype.DTD</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>italic</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Markup tag</string>    <key>scope</key>    <string>meta.tag, declaration.tag</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#FF66CC</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Markup name of tag</string>    <key>scope</key>    <string>entity.name.tag</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>bold</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Markup tag attribute</string>    <key>scope</key>    <string>entity.other.attribute-name</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>italic</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Markup: Heading</string>    <key>scope</key>    <string>markup.heading</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>bold</string>     <key>foreground</key>     <string>#FFFF00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Markup: Quote</string>    <key>scope</key>    <string>markup.quote</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>italic</string>     <key>foreground</key>     <string>#00FFCC</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Markup: List</string>    <key>scope</key>    <string>markup.list</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#00FFCC</string>    </dict>   </dict>  </array>  <key>uuid</key>  <string>8D4988B9-ADD8-436F-B388-BC1360F8504B</string> </dict> </plist>


下面展示一下我之前用的配色方案吧:

分享一下自己的sublime-text配色_xml_03

分享一下自己的sublime-text配色_c++_04

相应的配色代码为:


<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict>  <key>name</key>  <string>Slate</string>  <key>settings</key>  <array>   <dict>    <key>settings</key>    <dict>     <key>background</key>     <string>#1B3849F2</string>     <key>caret</key>     <string>#8BA7A7</string>     <key>foreground</key>     <string>#F8F8F8</string>     <key>invisibles</key>     <string>#FFFFFF40</string>     <key>lineHighlight</key>     <string>#0000004A</string>     <key>selection</key>     <string>#C5DFE980</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Comment</string>    <key>scope</key>    <string>comment</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>italic</string>     <key>foreground</key>     <string>#1E9AE0</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Constant</string>    <key>scope</key>    <string>constant</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FF3A83</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Entity</string>    <key>scope</key>    <string>entity</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#EFE900</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Keyword</string>    <key>scope</key>    <string>keyword</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#FFAA00</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Storage</string>    <key>scope</key>    <string>storage</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#F6F080</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>String</string>    <key>scope</key>    <string>string</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#55E439</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Support</string>    <key>scope</key>    <string>support</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#9DF39F</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Variable</string>    <key>scope</key>    <string>variable</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FB9A4B</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Invalid</string>    <key>scope</key>    <string>invalid</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#D8290DBF</string>     <key>foreground</key>     <string>#F8F8F8</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Embedded Source</string>    <key>scope</key>    <string>text source</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#B0B3BA14</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Embedded Source (Bright)</string>    <key>scope</key>    <string>text.html.ruby source</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#B1B3BA21</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Entity inherited-class</string>    <key>scope</key>    <string>entity.other.inherited-class</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string>italic</string>     <key>foreground</key>     <string>#4EE161</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>String embedded-source</string>    <key>scope</key>    <string>string.quoted source</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#9DF39F</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>String constant</string>    <key>scope</key>    <string>string constant</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#9DF39F</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>String.regexp</string>    <key>scope</key>    <string>string.regexp</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FFB454</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>String variable</string>    <key>scope</key>    <string>string variable</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#EDEF7D</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Support.function</string>    <key>scope</key>    <string>support.function</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#FFB454</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Support.constant</string>    <key>scope</key>    <string>support.constant</string>    <key>settings</key>    <dict>     <key>fontStyle</key>     <string></string>     <key>foreground</key>     <string>#EB939A</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>C/C++ Preprocessor Line</string>    <key>scope</key>    <string>other.preprocessor.c</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#8996A8</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>C/C++ Preprocessor Directive</string>    <key>scope</key>    <string>other.preprocessor.c entity</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#AFC4DB</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Doctype/XML Processing</string>    <key>scope</key>    <string>declaration.sgml.html declaration.doctype, declaration.sgml.html declaration.doctype entity, declaration.sgml.html declaration.doctype string, declaration.xml-processing, declaration.xml-processing entity, declaration.xml-processing string</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#73817D</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>Meta.tag.A</string>    <key>scope</key>    <string>declaration.tag, declaration.tag entity, meta.tag, meta.tag entity</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#9EFFFF</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>css tag-name</string>    <key>scope</key>    <string>meta.selector.css entity.name.tag</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#9EFFFF</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>css#id</string>    <key>scope</key>    <string>meta.selector.css entity.other.attribute-name.id</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#FFB454</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>css.class</string>    <key>scope</key>    <string>meta.selector.css entity.other.attribute-name.class</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#5FE461</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>css property-name:</string>    <key>scope</key>    <string>support.type.property-name.css</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#9DF39F</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>css property-value;</string>    <key>scope</key>    <string>meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#F6F080</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>css @at-rule</string>    <key>scope</key>    <string>meta.preprocessor.at-rule keyword.control.at-rule</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#F6AA11</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>css additional-constants</string>    <key>scope</key>    <string>meta.property-value support.constant.named-color.css, meta.property-value constant</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#EDF080</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>css constructor.argument</string>    <key>scope</key>    <string>meta.constructor.argument.css</string>    <key>settings</key>    <dict>     <key>foreground</key>     <string>#EB939A</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>diff.header</string>    <key>scope</key>    <string>meta.diff, meta.diff.header</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#0E2231</string>     <key>fontStyle</key>     <string>italic</string>     <key>foreground</key>     <string>#F8F8F8</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>diff.deleted</string>    <key>scope</key>    <string>markup.deleted</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#D03620</string>     <key>foreground</key>     <string>#F8F8F8</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>diff.changed</string>    <key>scope</key>    <string>markup.changed</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#C4B14A</string>     <key>foreground</key>     <string>#F8F8F8</string>    </dict>   </dict>   <dict>    <key>name</key>    <string>diff.inserted</string>    <key>scope</key>    <string>markup.inserted</string>    <key>settings</key>    <dict>     <key>background</key>     <string>#41A83E</string>     <key>foreground</key>     <string>#F8F8F8</string>    </dict>   </dict>  </array>  <key>uuid</key>  <string>5B697FF1-38A6-4B42-9BF6-84830E816A0D</string> </dict> </plist>


只需要将相应的文件放在:Sublime Text 2\Packages\Color Scheme - Default 文件夹下面就行。