1

I have a custom file extension, and Notepad++ does some weird coloration to it by default. I want N++ to treat every file with this extension as "Normal Text" language. I know can where I would maybe change it from Settings > Style Configurator > Language, but "Normal Text" isn't listed in the list of languages.

1

The extension is presumably listed in the langs.xml file as an associated default extension for a particular language.

You can remove a default extension by opening the langs.xml file in the Notepad++ data directory. This directory depends on your settings, but is generally either in the same folder as the Notepad++ installation or in %APPDATA%\Notepad++.

As an example, the default extensions for ActionScript are listed in the ext field of the <Language name="actionscript"> element.

<Language name="actionscript" ext="as mx" commentLine="//" commentStart="/*" commentEnd="*/">

You can remove the extension by simply deleting it here, saving the file and then restarting Notepad++.

The one drawback about this is that you would likely need to repeat this step after any Notepad++ update that updates the langs.xml file.

| improve this answer | |
  • %AppData%\Roaming\Notepad++ is not correct. %AppData% expands to c:\users\<name>\AppData\Roaming already (*), so that resolves to c:\users\<name>\AppData\Roaming\Roaming\Notepad++. (see wayback of MS link = Vista, 7, 8.1, 10; see also ss64 and wikipedia Environment variables article ) – PeterCJ Mar 5 '19 at 4:01
  • 1
    @PeterCJ Corrected, thanks. – Worthwelle Mar 5 '19 at 4:02
  • Worked great, thanks! – Merlin820 Mar 5 '19 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.