Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Custom log file syntax highlighting for Notepad++
<NotepadPlus>
<UserLang name="LogFile" ext="log">
<Settings>
<Global caseIgnored="yes" />
<TreatAsSymbol comment="no" commentLine="no" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">[(0])0</Keywords>
<Keywords name="Folder+"></Keywords>
<Keywords name="Folder-"></Keywords>
<Keywords name="Operators">&apos; - ! &quot; # $ % &amp; ( ) * , . / : ; ? @ [ \ ] ^ _ ` { | } ~ + &lt; = &gt;</Keywords>
<Keywords name="Comment">1 2 0</Keywords>
<Keywords name="Words1">ERROR</Keywords>
<Keywords name="Words2">WARN WARNING</Keywords>
<Keywords name="Words3">DEBUG</Keywords>
<Keywords name="Words4">INFO</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="KEYWORD1" styleID="5" fgColor="FFFFFF" bgColor="FF0000" fontName="" fontStyle="1" />
<WordsStyle name="KEYWORD2" styleID="6" fgColor="FFFFFF" bgColor="FF8000" fontName="" fontStyle="1" />
<WordsStyle name="KEYWORD3" styleID="7" fgColor="FFFFFF" bgColor="FF80FF" fontName="" fontStyle="1" />
<WordsStyle name="KEYWORD4" styleID="8" fgColor="FFFFFF" bgColor="0080FF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="COMMENT LINE" styleID="2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="NUMBER" styleID="4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
<WordsStyle name="OPERATOR" styleID="10" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="1" />
<WordsStyle name="DELIMINER1" styleID="14" fgColor="000000" bgColor="FFFFBF" fontName="" fontStyle="1" />
<WordsStyle name="DELIMINER2" styleID="15" fgColor="800000" bgColor="FFFFFF" fontName="" fontStyle="2" />
<WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
</Styles>
</UserLang>
</NotepadPlus>
@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Feb 25, 2013

This is wonderful. Thanks for sharing.

@sshakil

This comment has been minimized.

Copy link

@sshakil sshakil commented Sep 3, 2013

New to notepad++; where can I import this?

@ysrb

This comment has been minimized.

Copy link

@ysrb ysrb commented May 3, 2014

Nice! Thank you!

@ysrb

This comment has been minimized.

Copy link

@ysrb ysrb commented May 3, 2014

@sshakil or to anyone:

Go to Language -> User Defined -> Import to import

@YoanAlvarez

This comment has been minimized.

Copy link

@YoanAlvarez YoanAlvarez commented Dec 16, 2014

It is useful, thank you.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Apr 21, 2015

Nice!! Thanks!

@pratikabu

This comment has been minimized.

Copy link

@pratikabu pratikabu commented Aug 5, 2015

That's wonderful, thanks!

@Aijnauyus

This comment has been minimized.

Copy link

@Aijnauyus Aijnauyus commented May 26, 2016

Awesome! Thank you!

@jonashilmersson

This comment has been minimized.

Copy link

@jonashilmersson jonashilmersson commented May 30, 2016

Works perfectly together with the new tail -f feature in NP++ v6.9.2 👍, thanks!

@barser

This comment has been minimized.

Copy link

@barser barser commented Jul 26, 2016

Thanks for sharing!

@shpil95

This comment has been minimized.

Copy link

@shpil95 shpil95 commented Aug 2, 2016

thanks!

@foreachthing

This comment has been minimized.

Copy link

@foreachthing foreachthing commented Sep 9, 2016

Thank you!
But since I use a dark theme, I had to change some values:
<Styles> <WordsStyle name="DEFAULT" styleID="11" fgColor="DCDCCC" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" /> <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="DCDCCC" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" /> <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="DCDCCC" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" /> <WordsStyle name="KEYWORD1" styleID="5" fgColor="FFFFFF" bgColor="FF0000" fontName="" fontStyle="1" /> <WordsStyle name="KEYWORD2" styleID="6" fgColor="FFFFFF" bgColor="FF8000" fontName="" fontStyle="1" /> <WordsStyle name="KEYWORD3" styleID="7" fgColor="FFFFFF" bgColor="FF80FF" fontName="" fontStyle="1" /> <WordsStyle name="KEYWORD4" styleID="8" fgColor="FFFFFF" bgColor="0080FF" fontName="" fontStyle="2" /> <WordsStyle name="COMMENT" styleID="1" fgColor="DCDCCC" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" /> <WordsStyle name="COMMENT LINE" styleID="2" fgColor="DCDCCC" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" /> <WordsStyle name="NUMBER" styleID="4" fgColor="DCDCCC" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" /> <WordsStyle name="DELIMINER1" styleID="14" fgColor="DCDCCC" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="1" /> <WordsStyle name="DELIMINER2" styleID="15" fgColor="F08C00" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="2" /> <WordsStyle name="DELIMINER3" styleID="16" fgColor="DCDCCC" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" /> <WordsStyle name="OPERATOR" styleID="10" fgColor="FF7480" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="1" /> </Styles>

@MikeshCZ

This comment has been minimized.

Copy link

@MikeshCZ MikeshCZ commented Nov 4, 2016

Thank you a lot for sharing!

@ayakout

This comment has been minimized.

Copy link

@ayakout ayakout commented Jan 26, 2017

Thanks for sharing. Really useful.
Always wanted some log highlighter to ship by default in np++ may be yours is a good candidate.

@noamgot

This comment has been minimized.

Copy link

@noamgot noamgot commented Jun 8, 2017

This is great, thanks!

@amanjosan2008

This comment has been minimized.

Copy link

@amanjosan2008 amanjosan2008 commented Aug 31, 2017

Excellent addon.... Is it possible to highlight IP addresses?

@longtth

This comment has been minimized.

Copy link

@longtth longtth commented Jan 12, 2018

work perfect, thanks!

@mikhailusachev

This comment has been minimized.

Copy link

@mikhailusachev mikhailusachev commented Jan 24, 2018

Thanks for that!

@vcsekhar

This comment has been minimized.

Copy link

@vcsekhar vcsekhar commented Feb 13, 2018

Thanks for sharing

@Gus7av0

This comment has been minimized.

Copy link

@Gus7av0 Gus7av0 commented Feb 22, 2018

Gracias!

@TeddybearCrisis

This comment has been minimized.

Copy link

@TeddybearCrisis TeddybearCrisis commented Oct 26, 2018

thanks

@shabanali-faghani

This comment has been minimized.

Copy link

@shabanali-faghani shabanali-faghani commented Aug 6, 2019

Awesome! Thank you.

@AbdhulRaheem

This comment has been minimized.

Copy link

@AbdhulRaheem AbdhulRaheem commented Aug 17, 2019

how we can import this

@mmdemirbas

This comment has been minimized.

Copy link
Owner Author

@mmdemirbas mmdemirbas commented Aug 17, 2019

You can import a UDL file into Notepad++ as explained here: https://superuser.com/a/1057185/64376

@paradigmaweb

This comment has been minimized.

Copy link

@paradigmaweb paradigmaweb commented May 31, 2020

still working! thanks!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.