using User Defined Language : v.2.1.0.12
-
Hello Dear you,
First let’s me tell you how helpfull is “notepad++” with “User Defined Language : v.2.1.0.12”
I hope i will be clear,
let me share with you the trouble i have with User Defined Language : v.2.1.0.12,
1/ notepad kraches when : i defined an User Defined Language using a large number of keyword list,
To recreate it :
Let’s take that scenario with only one large entry :
–> copy this string “llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll” or an other one and paste it in group 1 of a keyword list,
Then use your language … should krach,If you add it in userDefineLang.xml, and then you restart … krach,
2/ other “strange thing” : when you have use let say “NewName” as a name for an user defined language, that name is definitively unusable : it appears nowhere in the roaming : C:\Users\me\AppData\Roaming\Notepad++ ,
we can’t use it anymore for a user defined language
if you use remove that NewName , still can’t reuse it .
if i force rebuilt of config.xml by setting it at configold.xml
then NewName appears in userDefineLang.xml, while before it was not thereI hope i was clear,
Thanks
-
1/ notepad kraches
The UDL engine itself has not changed (it’s been at 2.1.0.12 for years). But in Notepad++ v8.9.2, they changed the library that reads the XML definition file(s), and there was a bug which causes Notepad++ to crash when you enter a keyword that’s too long (or sometimes even when you load the XML from disk). That bug has been fixed in v8.9.3, which is currently available as a “Release Candidate”, as linked from here. If you don’t want to use a Release Candidate, then you can install the older v8.9.1 until v8.9.3 is fully released.
2/ other “strange thing” : when you have use let say “NewName” as a name for an user defined language, that name is definitively unusable : it appears nowhere in the roaming : C:\Users\me\AppData\Roaming\Notepad++ ,
When you create any new UDL using the GUI, it saves them all into
...\AppData\Roaming\Notepad++\userDefineLang.xml, instead of creating a separate file for each UDL. There’s a section in the Online User Manual on Keeping UDL Files SeparateAnd it doesn’t save it into
userDefineLang.xmluntil you exit Notepad++. Closing the User Defined Language window in the GUI does not save it to disk.(When I was experimenting with the v8.9.2 crash, I also found that it wasn’t necessarily storing the name of the new UDL properly in the GUI interface, which may have been adding to your confusion. Again, either go to v8.9.3-ReleaseCandidate, or go back to the released v8.9.1 if you want UDL to behave as expected.)
if i force rebuilt of config.xml by setting it at configold.xml
then NewName appears in userDefineLang.xml
UDLs have nothing to do with
config.xml, and doing that had no influence on what happened. It just got saved to that file when you exited Notepad++, even before you renamedconfig.xml.