Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Notepad++ syntax highlighting for Diablo 2 loot filters
<NotepadPlus>
<UserLang name="D2 item filter" ext="filter" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="yes" 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">&lt; &gt; = % ! - :</Keywords>
<Keywords name="Operators2">AND OR</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">BORDER&#x000D;&#x000A;MAP&#x000D;&#x000A;DOT&#x000D;&#x000A;PX</Keywords>
<Keywords name="Keywords2">NAME&#x000D;&#x000A;ILVL&#x000D;&#x000A;ALVL&#x000D;&#x000A;PRICE&#x000D;&#x000A;QTY&#x000D;&#x000A;SOCKETS&#x000D;&#x000A;RANGE&#x000D;&#x000A;WPNSPD&#x000D;&#x000A;RUNENUM&#x000D;&#x000A;RUNENAME&#x000D;&#x000A;GEMLEVEL&#x000D;&#x000A;GEMTYPE&#x000D;&#x000A;CODE</Keywords>
<Keywords name="Keywords3">WHITE&#x000D;&#x000A;GRAY&#x000D;&#x000A;BLUE&#x000D;&#x000A;YELLOW&#x000D;&#x000A;GOLD&#x000D;&#x000A;GREEN&#x000D;&#x000A;DARK_GREEN&#x000D;&#x000A;TAN&#x000D;&#x000A;BLACK&#x000D;&#x000A;PURPLE&#x000D;&#x000A;RED&#x000D;&#x000A;ORANGE</Keywords>
<Keywords name="Keywords4">CONTINUE&#x000D;&#x000A;NL</Keywords>
<Keywords name="Keywords5">EQ1&#x000D;&#x000A;EQ2&#x000D;&#x000A;EQ3&#x000D;&#x000A;EQ4&#x000D;&#x000A;EQ5&#x000D;&#x000A;EQ6&#x000D;&#x000A;EQ7&#x000D;&#x000A;ARMOR&#x000D;&#x000A;HELM&#x000D;&#x000A;CHEST&#x000D;&#x000A;SHIELD&#x000D;&#x000A;GLOVES&#x000D;&#x000A;BOOTS&#x000D;&#x000A;BELT&#x000D;&#x000A;CIRC&#x000D;&#x000A;WP1&#x000D;&#x000A;WP2&#x000D;&#x000A;WP3&#x000D;&#x000A;WP4&#x000D;&#x000A;WP5&#x000D;&#x000A;WP6&#x000D;&#x000A;WP7&#x000D;&#x000A;WP8&#x000D;&#x000A;WP9&#x000D;&#x000A;WP10&#x000D;&#x000A;WP11&#x000D;&#x000A;WP12&#x000D;&#x000A;WP13&#x000D;&#x000A;WEAPON&#x000D;&#x000A;AXE&#x000D;&#x000A;MACE&#x000D;&#x000A;SWORD&#x000D;&#x000A;DAGGER&#x000D;&#x000A;THROWING&#x000D;&#x000A;JAV&#x000D;&#x000A;SPEAR&#x000D;&#x000A;POLEARM&#x000D;&#x000A;BOW&#x000D;&#x000A;XBOW&#x000D;&#x000A;STAFF&#x000D;&#x000A;WAND&#x000D;&#x000A;SCEPTER&#x000D;&#x000A;CL1&#x000D;&#x000A;CL2&#x000D;&#x000A;CL3&#x000D;&#x000A;CL4&#x000D;&#x000A;CL5&#x000D;&#x000A;CL6&#x000D;&#x000A;CL7&#x000D;&#x000A;DRU&#x000D;&#x000A;BAR&#x000D;&#x000A;DIN&#x000D;&#x000A;NEC&#x000D;&#x000A;SIN&#x000D;&#x000A;SOR&#x000D;&#x000A;ZON</Keywords>
<Keywords name="Keywords6">NMAG&#x000D;&#x000A;MAG&#x000D;&#x000A;RARE&#x000D;&#x000A;UNI&#x000D;&#x000A;SET&#x000D;&#x000A;CRAFT&#x000D;&#x000A;NORM&#x000D;&#x000A;EXC&#x000D;&#x000A;ELT&#x000D;&#x000A;ID&#x000D;&#x000A;INF&#x000D;&#x000A;SUP&#x000D;&#x000A;ETH&#x000D;&#x000A;RW&#x000D;&#x000A;GEM</Keywords>
<Keywords name="Keywords7">GOLD&#x000D;&#x000A;GEMLEVEL&#x000D;&#x000A;GEMTYPE&#x000D;&#x000A;RUNE&#x000D;&#x000A;QTY&#x000D;&#x000A;DEF&#x000D;&#x000A;LVLREQ&#x000D;&#x000A;PRICE&#x000D;&#x000A;CRAFTALVL&#x000D;&#x000A;ALVL&#x000D;&#x000A;QLVL&#x000D;&#x000A;ILVL&#x000D;&#x000A;CLVL&#x000D;&#x000A;DIFF</Keywords>
<Keywords name="Keywords8">SOCK&#x000D;&#x000A;ED&#x000D;&#x000A;AR&#x000D;&#x000A;RES&#x000D;&#x000A;FRES&#x000D;&#x000A;LRES&#x000D;&#x000A;CRES&#x000D;&#x000A;PRES&#x000D;&#x000A;FRW&#x000D;&#x000A;IAS&#x000D;&#x000A;FCR&#x000D;&#x000A;FHR&#x000D;&#x000A;FBR&#x000D;&#x000A;MINDMG&#x000D;&#x000A;MAXDMG&#x000D;&#x000A;STR&#x000D;&#x000A;DEX&#x000D;&#x000A;LIFE&#x000D;&#x000A;MANA&#x000D;&#x000A;MFIND&#x000D;&#x000A;GFIND&#x000D;&#x000A;MAEK&#x000D;&#x000A;DTM&#x000D;&#x000A;REPLIFE&#x000D;&#x000A;REPAIR&#x000D;&#x000A;ARPER&#x000D;&#x000A;FOOLS</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="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="646464" bgColor="FFFFFF" fontName="aligned" fontStyle="0" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="2FBBF0" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="8080FF" bgColor="FFFFFF" fontName="" fontStyle="4" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="0080FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="008A8A" bgColor="FDFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="CD2310" bgColor="FFFEFE" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="CE6700" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="88690D" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="FF7DBE" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="808000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="5E5EFF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="580C51" 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="FF8080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS2" fgColor="000000" 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>
@multimentha
Copy link
Author

multimentha commented Jan 5, 2021

How do I install this?

  1. Download this XML file. It comes in a ZIP archive so extract it to a convenient place.
  2. Open Notepad++
  3. Bring up the User Defined Language dialog by navigating through the main menu like this: Language → User Defined Language → Define Your Language.
  4. In the dialog that opens click on the "Import" button and pick the file you just downloaded (Diablo 2 item filter.xml).
  5. That's it! If you want to you can use the dialog to customize the colors. Notepad++ will now automatically apply the syntax highlighting for any file with the extension *.filter. If for some reason that doesn't work, you can manually pick it from the Language menu. You'll find the entry "Diablo 2 item filter" the bottom half with any other user defined languages you may have installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment