@Gerard-Kiekens said in Notepad++ VERY slow to open:
I agree with you that the size should not change, but it did.
Hard to argue my side cogently when you provide no data.
Editing a fresh Darkmode_Default afterwards solved the problem. This one also increased in size, but kept working as fast as it should.
But not from 220kB to 500MB.
If you want to "play"with it, you can find it here:
https://www.key-can.nl/Info/DarkModeDefault.xml
The file you linked there is only about 220kB as well. And the reason it’s a different size than the actual DarkModeDefault is because it obviously started from an old version of Choco.xml, as evidenced by the copyright notice starting:
<?xml version="1.0" encoding="Windows-1252" ?>
<!--//
choco
Copyright (c) 2008 Fabio Zendhi Nagao <http://zend.lojcomm.com.br/>
I can tell it’s an old copy of choco, though, because it is still “Windows-1252”. That was changed to UTF-8 in v7.9.3 from 2021.
DarkModeDefault was originally derived from Zenburn.xml, since the time it was created (it started with the full zenburn preamble, but eventually pared it down to
<!--
Dark mode default style for Notepad++.
This file is based on Zenburn them (zenburn.xml)
License: GPL2
-->
As you will probably know you can find the themes in %users%\Appdata\Roaming\Notepad++\Themes
That’s where you find your customizations. The originals (kept up to date with each update of the program) are in c:\program files\Notepad++\themes. Historically, Notepad++ would just leave your customized themes completely alone, so they would never show you any of the new styles that had been added/enabled over the last 5 years; in the recent Notepad++ releases (starting in v8.8.9, though I recommend skipping 8.8.9 and 8.9.0 and going directly to 8.9.1-or-newer because of bugs in the first two releases of this feature), it will add any missing styles or missing languages to your active theme, so that way, your Style Configurator will allow you to edit colors for new styles or languages without losing all your old theme customizations.
So the small size difference between your Choco-based theme and the actual DarkModeDefault can be explained by being based on the old Choco. The huge 500Mb size that you reported from earlier cannot be explained by anything that’s been said yet, and I still don’t understand how it could have happened inside Notepad++. And without a hint as to what the edited XML looked like for the super huge file, there’s really no way that mystery will ever be solved.