1. 把下面XML代码保存成XML文件, 例如: MyStyle.xml;
2. 把文件拷贝到Notepad++的themes目录, 例如: "C:\Program Files (x86)\Notepad++\themes";
3. 打开Notepad++, 点击菜单: 设置|语言格式设置|选择"MyStyle"主题;
4. OK;
2. 把文件拷贝到Notepad++的themes目录, 例如: "C:\Program Files (x86)\Notepad++\themes";
3. 打开Notepad++, 点击菜单: 设置|语言格式设置|选择"MyStyle"主题;
4. OK;
基于Notepad++的Monokai.xml主题修改, 字体全部选用Consolas和加粗.
<?xml version="1.0" encoding="Windows-1252" ?>
<!--//
Monokai
Copyright (c) 2008 Fabio Zendhi Nagao <http://zend.lojcomm.com.br/>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Requirements:
* This style is based on DejaVu fonts <http://dejavu.sourceforge.net/wiki/index.php/Main_Page>.
* Notepad++, of course.
Installation:
Copy this file to C:\Documents and Settings\%%USERNAME%%\Application Data\Notepad++\
About:
This styler has been built by Textmate theme to Notepad++ styler <http://framework.lojcomm.com.br/tmTheme2nppStyler/>
Credits:
Thanks for the original Textmate theme author.
Thanks for Fabio Zendhi Nagao for the tmTheme2nppStyler.
Thanks for the user for the tmTheme source.
//-->
<NotepadPlus>
<LexerStyles>
<LexerType name="c" desc="C" ext="">
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="DEFAULT" styleID="11" fgColor="F8F8F2" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="66D9EF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="instre1" />
<WordsStyle name="TYPEWORD" styleID="16" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="type1" />
<WordsStyle name="NUMBER" styleID="4" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="STRING" styleID="6" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="CHARACTER" styleID="7" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="VERBATIM" styleID="13" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="REGEX" styleID="14" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT" styleID="1" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC" styleID="3" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
</LexerType>
<LexerType name="cpp" desc="C++" ext="">
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="FF80C0" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="DEFAULT" styleID="11" fgColor="C0C0C0" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="66D9EF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="instre1" />
<WordsStyle name="TYPE WORD" styleID="16" fgColor="0080C0" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="type1" />
<WordsStyle name="NUMBER" styleID="4" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="STRING" styleID="6" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="CHARACTER" styleID="7" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="FF8000" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="VERBATIM" styleID="13" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="REGEX" styleID="14" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT" styleID="1" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="008000" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC" styleID="3" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
</LexerType>
<LexerType name="java" desc="Java" ext="">
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="DEFAULT" styleID="11" fgColor="F8F8F2" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="66D9EF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="instre1" />
<WordsStyle name="TYPE WORD" styleID="16" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="type1" />
<WordsStyle name="NUMBER" styleID="4" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="STRING" styleID="6" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="CHARACTER" styleID="7" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="VERBATIM" styleID="13" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="REGEX" styleID="14" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT" styleID="1" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC" styleID="3" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
</LexerType>
<LexerType name="cs" desc="C#" ext="">
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="DEFAULT" styleID="11" fgColor="F8F8F2" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="66D9EF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="instre1" />
<WordsStyle name="TYPE WORD" styleID="16" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="NUMBER" styleID="4" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="STRING" styleID="6" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="CHARACTER" styleID="7" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="VERBATIM" styleID="13" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="REGEX" styleID="14" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT" styleID="1" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC" styleID="3" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
</LexerType>
<LexerType name="rc" desc="RC" ext="">
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="DEFAULT" styleID="11" fgColor="F8F8F2" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="66D9EF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="instre1" />
<WordsStyle name="TYPE WORD" styleID="16" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="NUMBER" styleID="4" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="STRING" styleID="6" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="CHARACTER" styleID="7" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="VERBATIM" styleID="13" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="REGEX" styleID="14" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT" styleID="1" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC" styleID="3" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
</LexerType>
<LexerType name="tcl" desc="TCL" ext="">
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="DEFAULT" styleID="11" fgColor="F8F8F2" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="66D9EF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="instre1" />
<WordsStyle name="TYPE WORD" styleID="16" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="type1" />
<WordsStyle name="NUMBER" styleID="4" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="STRING" styleID="6" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="CHARACTER" styleID="7" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="VERBATIM" styleID="13" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="REGEX" styleID="14" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT" styleID="1" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC" styleID="3" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
</LexerType>
<LexerType name="objc" desc="Objective-C" ext="">
<WordsStyle name="DIRECTIVE" styleID="19" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="instre2" />
<WordsStyle name="DEFAULT" styleID="11" fgColor="F8F8F2" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="QUALIFIER" styleID="20" fgColor="000000" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="type2" />
<WordsStyle name="PREPROCESSOR" styleID="9" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="INSTRUCTION WORD" styleID="5" fgColor="66D9EF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="instre1" />
<WordsStyle name="TYPE WORD" styleID="16" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" keywordClass="type1" />
<WordsStyle name="NUMBER" styleID="4" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="STRING" styleID="6" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="CHARACTER" styleID="7" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="F92672" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="VERBATIM" styleID="13" fgColor="AE81FF" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="REGEX" styleID="14" fgColor="E6DB74" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT" styleID="1" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC" styleID="3" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT LINE DOC" styleID="15" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD" styleID="17" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
<WordsStyle name="COMMENT DOC KEYWORD ERROR" styleID="18" fgColor="75715E" bgColor="272822" fontName="Consolas" fontStyle="1" fontSize="10" />
</LexerType>
<LexerType name="sql" desc="SQL" ext="">
<WordsStyle name="KEYWORD" styleID="5" fgColor="F92672" bgColor="272822" fontName="Consolas"