Fixing Notepad++’s “Load langs.xml failed!” Error

“Load langs.xml failed!” is a really annoying error from Notepad++ that means syntax highlighting is broken.

langs.xml is a file Notepad++ uses to define the syntax of supported languages. Copies of the file live in more than one place.

Sean Walther’s instructions to fix the “Load langs.xml failed!” message have saved me once. In short, delete langs.xml from the Notepad++ application folder and replace it with a copy of langs.model.xml from the same folder before restarting Notepad++.

Today I had to try a different fix. Start a new cmd session and run the following command:

del %USERPROFILE%\AppData\Roaming\Notepad++\langs.xml

This deletes a copy of langs.xml from your profile’s Notepad++ configuration.

When you restart Notepad++, it should recreate a valid langs.xml in your profile, and syntax highlighting should work again.


One thought on “Fixing Notepad++’s “Load langs.xml failed!” Error

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s