This answer was taken from a rejected edit and it was not written by me:
Not a full proof solution as it can happen again.
"Do not use environment variable %APPDATA%" can be selected on Windows 7 installations, but seems to be ignored. Langs.xml
seems to always be put in %APPDATA%
. (Is this confusion the cause of the bug?)
Copy the new %APPDATA%\Langs.xml
to %APPDATA%\Langs.model.xml
and put a copy in Program Files\Notepad++
.
Copy %APPDATA%\Langs.model.xml
or ProgramFiles\Notepad++\Langs.model.xml
to %APPDATA%\Langs.xml
if the problem occurs again – not foolproof but it's a workaround.
A foolproof solution would be to fix the bug causing Langs.xml
to be corrupted.
It happens occasionally. Each time I follow the steps in the accepted answer, but it's still annoying. In my latest attempt, I denied myseld write rights to langs.xml, so hopingly the file doesn't get truncated now.
– GolezTrol – 2016-02-03T08:47:52.2732This happens to me occasionally. And I lose my settings as well. This is going for a few years at least. – Halil Özgür – 2012-09-27T06:27:13.510
3Strangely, I had the same problem. And the interesting thing was the highlighting worked when I selected the language manually. Anyways, the accepted answer seems to fix the problem completely. – anand.trex – 2009-12-21T17:24:41.917