INI files opening in wrong language (Temporary fix found)
-
After the latest update INI files open encoded in json rather than INI. I checked the langs.xml file and the associations are correct, but trying to comment out the json block causes the files to open in json5, which doesn’t even appear in the langs file!
How do I fix this?
It’s really annoying having the entire file have that glaring red “ERROR” background from json, and I shouldn’t need to manually change to the right language every single time I open a file.
Edit: Apparently adding ini to the user ext in the “Style Configurator” fixes this issue, but is there a more proper solution?
Debug info:
Notepad++ v8.6.9 (32-bit)
Build time : Jul 12 2024 - 05:08:26
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Command Line : “D:\Program Files (x86)\GOG Galaxy\Games\Weird Worlds\default\gamedata\items\wp_projgluw.ini”
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 10 Home (64-bit)
OS Version : 22H2
OS Build : 19045.4894
Current ANSI codepage : 1252
Plugins :
mimeTools (3.1)
NppConverter (4.6)
NppExport (0.4) -
when I take a portable v8.6.9 (which just has the default extensions from langs.xml, with no changes in the Style Configurator user-ext) and open an ini file, it appropriately identifies it as an INI.
Can you use the
</>
button in your reply and paste in a short .ini file which consistently is mis-identified, so we can try to reproduce the problem? Because right now, “it works for me”.