@Fred-Morant said in using User Defined Language : v.2.1.0.12:
Let’s create “alphatest” as a name for a new user defined language , close notepad++, new bloc appears in userDefineLang.xml for that “alphatest” , remove it from userDefineLang.xml manually , repopen Notepad++ : you can’t use that name “alphatest” again,
I cannot replicate. No matter how I try (ie, no matter how I interpret “remove it manually”):
First try:
Start Notepad++ with no userDefineLang.xml existing
Language > User Defined Language > Define your language…
Create new…: alphatest
Set
ext: at and close the UDL dialog
Exit Notepad++
userDefineLang.xml exists
Edit userDefineLang.xml in Notepad++, delete the whole alphatest section, save, exit Notepad++
Run Notepad++: alphatest no longer exists.
Create new…: alphatest works without difficulty
Second try:
Start Notepad++ with no userDefineLang.xml existing
Language > User Defined Language > Define your language…
Create new…: alphatest
Set
ext: at and close the UDL dialog
Exit Notepad++
userDefineLang.xml exists
Run Notepad++, go into UDL dialog, and select alphatest
Remove, and answer
Yes when it asks if you’re sure. It’s gone.
Create new…: alphatest works again immediately.
Remove, and answer
Yes when it asks if you’re sure. It’s gone again.
Exit Notepad++ and restart.
Create new…: alphatest works again here, too.
I don’t know what else you could mean by “manually delete”
It works just fine. Again, this is not with v8.9.2. I tried those tests with v8.9.3-RC, and again with the older v8.9.1. It works exactly 100% as expected, and it never prevented me from creating alphatest after I’d deleted it in any way I could think of.