UDL (User Defined Language) freezing Notepad++



  • I defined a language .spin that used to work nicely in Notepad++. Now it is freezing Notepad++ for some time, if the style is selected.

    This is the xml file that causes the problem. Any help to get this working again is very much appreciated!

    <NotepadPlus>
    <UserLang name=“Spin” ext=“spin” udlVersion=“2.1”>
    <Settings>
    <Global caseIgnored=“yes” allowFoldOfComments=“yes” foldCompact=“no” forcePureLC=“0” decimalSeparator=“0” />
    <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{{ 03{ 04}} 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=“Operators2”>waitpne waitcnt </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”>PUB PRI </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”>repeat if else elseif ifnot elseifnot</Keywords>
    <Keywords name=“Keywords2”>CON PUB PRI VAR OBJ DAT abort bytefill bytemove case other chipver clkfreq clkmode clkset cogid coginit cognew cogstop con constant dat dira dirb file float ina inb lockclr locknew lockret lockset longfill longmove lookdown lookdownz lookup lookupz next obj outa par pri quit reboot repeat until while result return round spr strcomp string strsize trunc var vcfg vscl waitcnt waitpeq waitpne waitvid wordfill wordmove abs absneg add addabs adds addsx addx and andn call clkset cmp cmps cmpsub cmpsx cmpx cogid coginit cogstop djnz hubop jmp jmpret lockclr locknew lockret lockset max maxs min mins mov movd movi movs muxc muxnc muxnz muxz neg negc negz negnc negnz nop or rcl rcr rdbyte rdlong rdlong ret rev rol sar shl shr sub subabs subs subsx subx sumc sumnc sumnz sumz test testn tjnz tjz waitcnt waitpeq waitpne waitvid wrbyte wrlong wrword xor _clkfreq _clkmode _xinfreq _free _stack true false posx negx pi rcfast rcslow xinput xtal1 xtal2 xtal3 pll1x pll2x pll4x pll8x pll16x org fit wc wz wr nr if_always if_never if_e if_ne if_a if_b if_ae if_be if_c if_nc if_z if_nz if_c_eq_z if_c_ne_z if_c_and_z if_c_and_nz if_nc_and_z if_nc_and_nz if_c_or_z if_c_or_nz if_nc_or_z if_nc_or_nz if_z_eq_c if_z_ne_c if_z_and_c if_z_and_nc if_nz_and_c if_z_or_c if_z_or_nc if_nz_or_c if_nz_or_nc</Keywords>
    <Keywords name=“Keywords3”>cnt : phsa phsb frqa frqb ctra ctrb</Keywords>
    <Keywords name=“Keywords4”>> < == </Keywords>
    <Keywords name=“Keywords5”>long word byte word long</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=“383838” fontName=“Parallax” fontStyle=“0” fontSize=“12” nesting=“0” />
    <WordsStyle name=“COMMENTS” fgColor=“AAA5DE” bgColor=“383838” fontName=“Parallax” fontStyle=“0” fontSize=“12” nesting=“0” />
    <WordsStyle name=“LINE COMMENTS” fgColor=“AAA5DE” bgColor=“383838” fontName=“Parallax” fontStyle=“0” fontSize=“12” nesting=“0” />
    <WordsStyle name=“NUMBERS” fgColor=“00FFFF” bgColor=“000000” fontName=“Parallax” fontStyle=“0” fontSize=“12” nesting=“0” />
    <WordsStyle name=“KEYWORDS1” fgColor=“FF80C0” bgColor=“383838” fontName=“Parallax” fontStyle=“1” fontSize=“12” nesting=“0” />
    <WordsStyle name=“KEYWORDS2” fgColor=“8080FF” bgColor=“383838” fontName=“Parallax” fontStyle=“1” fontSize=“12” nesting=“0” />
    <WordsStyle name=“KEYWORDS3” fgColor=“FF0000” bgColor=“383838” fontName=“Parallax” fontStyle=“1” fontSize=“12” nesting=“0” />
    <WordsStyle name=“KEYWORDS4” fgColor=“00FF00” bgColor=“383838” fontName=“Parallax” fontStyle=“0” fontSize=“12” nesting=“0” />
    <WordsStyle name=“KEYWORDS5” fgColor=“FF80C0” bgColor=“FFFFFF” fontName=“Parallax” fontStyle=“0” fontSize=“12” 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=“FFFF80” bgColor=“383838” fontName="" fontStyle=“0” nesting=“0” />
    <WordsStyle name=“FOLDER IN CODE1” fgColor=“00FFFF” bgColor=“000000” fontName=“Parallax” fontStyle=“1” fontSize=“12” nesting=“0” />
    <WordsStyle name=“FOLDER IN CODE2” fgColor=“00FFFF” bgColor=“FFFFFF” fontName=“Parallax” fontStyle=“1” fontSize=“12” nesting=“0” />
    <WordsStyle name=“FOLDER IN COMMENT” fgColor=“FFFFFF” bgColor=“383838” fontName=“Parallax” fontStyle=“1” nesting=“0” />
    <WordsStyle name=“DELIMITERS1” fgColor=“FF8040” bgColor=“383838” fontName="" fontStyle=“0” nesting=“0” />
    <WordsStyle name=“DELIMITERS2” fgColor=“000000” bgColor=“FFFFFF” fontName="" fontStyle=“0” nesting=“0” />
    <WordsStyle name=“DELIMITERS3” fgColor=“FF0080” bgColor=“000000” 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>



  • Notepad++ freeezing is a ‘sign’ that this particular UDL is not a valid file.
    Using N++ to check gives me the following error:
    “XML Parsing error at line 10: extra content at the end of the document”


Log in to reply