Created
September 26, 2016 12:25
-
-
Save hvmonteiro/195e32b0afba93d806186d9dafc96b2b to your computer and use it in GitHub Desktop.
Notepad++ User Defined Language Syntax Highlight: Log4J
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<NotepadPlus> | |
<UserLang name="Log4J" ext="log" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="2" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00 01 02 03 04</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> | |
<Keywords name="Numbers, extras1"></Keywords> | |
<Keywords name="Numbers, extras2"></Keywords> | |
<Keywords name="Numbers, suffix1"></Keywords> | |
<Keywords name="Numbers, suffix2"></Keywords> | |
<Keywords name="Numbers, range"></Keywords> | |
<Keywords name="Operators1">- : , ;</Keywords> | |
<Keywords name="Operators2"></Keywords> | |
<Keywords name="Folders in code1, open"></Keywords> | |
<Keywords name="Folders in code1, middle"></Keywords> | |
<Keywords name="Folders in code1, close"></Keywords> | |
<Keywords name="Folders in code2, open"></Keywords> | |
<Keywords name="Folders in code2, middle"></Keywords> | |
<Keywords name="Folders in code2, close"></Keywords> | |
<Keywords name="Folders in comment, open"></Keywords> | |
<Keywords name="Folders in comment, middle"></Keywords> | |
<Keywords name="Folders in comment, close"></Keywords> | |
<Keywords name="Keywords1">ERROR
FATAL</Keywords> | |
<Keywords name="Keywords2">DEBUG</Keywords> | |
<Keywords name="Keywords3">INFO</Keywords> | |
<Keywords name="Keywords4">WARN
[WARN]</Keywords> | |
<Keywords name="Keywords5"></Keywords> | |
<Keywords name="Keywords6"></Keywords> | |
<Keywords name="Keywords7"></Keywords> | |
<Keywords name="Keywords8"></Keywords> | |
<Keywords name="Delimiters">00" 01 02" 03' 04 05' 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords> | |
</KeywordLists> | |
<Styles> | |
<WordsStyle name="DEFAULT" fgColor="FFFFFF" bgColor="FFFFFF" colorStyle="0" fontName="Courier New" fontStyle="0" nesting="0" /> | |
<WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="LINE COMMENTS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="NUMBERS" fgColor="007500" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS1" fgColor="000000" bgColor="FF0000" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="KEYWORDS2" fgColor="000000" bgColor="0080FF" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="KEYWORDS3" fgColor="000000" bgColor="00FF00" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFF00" fontName="" fontStyle="1" nesting="0" /> | |
<WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="OPERATORS" fgColor="FFFFFF" bgColor="FFFFFF" colorStyle="2" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS1" fgColor="888888" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS2" fgColor="888888" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" /> | |
</Styles> | |
</UserLang> | |
</NotepadPlus> |
Thanks! i appreciated that, just a thing, its possible chage the color of the className? One more time, thank you!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally from .
Here’s how you enable it:
1.Download this XML file (click RAW button in upper-left corner)
2.Import the file: Language → Define your language... → Import
3.Restart the application.
Files with .log extension automatically use this syntax highlighter, but you can always activate it manually: Language → Log4J. You can also adjust the colors and/or keywords using the same dialog, no XML hacking needed.