Suggestion: make inc files not default associated with any language
-
Most programming languages have the possibility to include source a file into another, and I think it is quite common that such a file have the file extension “inc” to separate them from other source code files.
Currently inc-files are default associated with Pascal, and in order to allow automatic syntax highlighting one have to edit “%AppData%\Notepad++\langs.xml”, and (in my experience) this has to be re-done for every NP++ update.
My suggestion is to “prohibit” the inc extension to be associated with any language by default, so that one can add it to the user extensions for the language you’re (currently) using. (The prohibition would probably need to be enforced simply “by rule/convention”, and not hard coded in the software)
-
@Sykledust said in Suggestion: make inc files not default associated with any language:
in order to allow automatic syntax highlighting one have to edit “%AppData%\Notepad++\langs.xml”, and (in my experience) this has to be re-done for every NP++ update.
In the Settings > Style Configurator, you can literally just go into the language you do want it to be, go to the User ext.: box and add it – no editing of langs.xml needed. Here’s a screenshot of adding it to the C language:

Once you’ve hit Save & Close from the Style Configurator, then the next time you open an
*.incfile in Notepad++, it will be under the new language, not Pascal, because user-extensions take priority over the default list fromlangs.xml. This change, like other user-defined changes, does stay chosen if you do a normal update of Notepad++, because Notepad++ updates (under normal circumstances) do not overwrite the user-edited config files.this has to be re-done for every NP++ update.
Even if you did it in
langs.xml, this is incorrect: a normal upgrade does not delete or overwrite%AppData%\Notepad++\langs.xmlor other such files – so unless you deleted that file (or the whole%AppData%\Notepad++\folder), or something else weird was going on, it would keep that choice.(Obviously, installing on a new computer will require making the config change again, but this is true for every option in Notepad++.)
-
T Terry R referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login