overwrite the stylers.xml file
-
Hello,
I’m currently using the portable version 8.5.7 of NPP.
I have updated some settings. The only file that has changed since installing version 8.5.7 is the stylers.xml file.
If I install the latest version of NPP, can I simply overwrite the stylers.xml file of the new version without disturbing the running of NPP?
Thank you for your reply.
-
@DomOBU ,
If you haven’t customized anything in your Style Configurator (colors, fonts, user-defined extensions, or user-defined keywords), then it is 100% safe to close Notepad++, overwrite stylers.xml, and re-run Notepad++.
If you have customized any of those, then a true overwrite would lose those customizations (which is why Notepad++ installer doesn’t overwrite it for you). My recommendation is to use the sequence defined in User Manual: Editing Config Files and use the ComparePlus plugin to compare the existing stylers.xml with the newest one, and bring over any new or updated languages from the new copy, without overwriting any of your customized attributes or data values.
-
@PeterJones
Thanks for the answer.I used the NPP user interface to mainly set colors and fonts for 3 languages.
I don’t see how I can manually edit the xml to find my current settings.
That’s the drawback of the portable version. -
@DomOBU said in overwrite the stylers.xml file:
I don’t see how I can manually edit the xml to find my current settings.
That’s the drawback of the portable versionIf your portable
notepad.exe
is inc:\portable\npp\
, thenstylers.xml
is atc:\portable\npp\stylers.xml
.The config files location is documented in the online user manual at npp-user-manual.org . And that same user-manual page has the description of best-practices for editing Notepad++'s config files from within Notepad++.