• Login
Community
  • Login

question about saving themes

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
style configthemessaving files
7 Posts 4 Posters 483 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    carlos navarro
    last edited by Feb 4, 2021, 12:56 PM

    hi, i’ve recently been enjoying notepad++ and had a question about saving themes. I was wondering if there is a way to save the changes i’ve made for a specific theme in the Style Configurator; been messing around with changing the style with the Twilight theme and i’m at a point where i’m satisfied with what I have and just want to save it as a file just in case and if possible. thanks for any help!

    A 1 Reply Last reply Feb 4, 2021, 1:07 PM Reply Quote 0
    • A
      Alan Kilborn @carlos navarro
      last edited by Feb 4, 2021, 1:07 PM

      @carlos-navarro

      It’s already saved into a file.
      If you locate the “themes” folder underneath the main N++ program folder, you’ll see a file called Twilight.xml. It contains any customizations you’ve made after selecting that theme.

      Now, if your intent was to keep the original Twilight settings intact, and create your custom theme entirely separately, the proper path would have been to copy the xml file to a new name, e.g. Twilight2.xml and then select that theme and start modifying it. But of course you didn’t, and couldn’t, know that was the path in advance. :-)


      Question for others:

      BTW, I’ve just noticed that the themes xml files are all encoded as follows:

      <?xml version="1.0" encoding="Windows-1252" ?>

      Isn’t using 1252 a bit, well, dated?

      M 1 Reply Last reply Feb 4, 2021, 9:06 PM Reply Quote 5
      • M
        mere-human @Alan Kilborn
        last edited by Feb 4, 2021, 9:06 PM

        @Alan-Kilborn said in question about saving themes:

        Isn’t using 1252 a bit, well, dated?

        But theme XML files usually don’t use anything besides ordinary ASCII characters so it really not that important IMO.
        This is critical for the localization XML files, they have a declaration like this:

        <?xml version="1.0" encoding="UTF-8"?>
        
        A 1 Reply Last reply Feb 4, 2021, 9:21 PM Reply Quote 1
        • A
          Alan Kilborn @mere-human
          last edited by Feb 4, 2021, 9:21 PM

          @mere-human said in question about saving themes:

          But theme XML files usually don’t use anything besides ordinary ASCII characters so it really not that important IMO.

          Ok, but it just seems to propagate ancient history. :-)
          These files could just as easily be UTF8.

          P 1 Reply Last reply Feb 4, 2021, 9:42 PM Reply Quote 1
          • P
            PeterJones @Alan Kilborn
            last edited by Feb 4, 2021, 9:42 PM

            @Alan-Kilborn ,

            I don’t have the time right now to check, but I thought I remembered seeing recently that there was a issue and/or commit to change at least some of the XML config files to UTF-8. I don’t know whether themes were a part of that “some” or not. (Also, maybe my imagination is running wild, and it’s not happening.)

            M 1 Reply Last reply Feb 5, 2021, 7:49 PM Reply Quote 2
            • M
              mere-human @PeterJones
              last edited by Feb 5, 2021, 7:49 PM

              @PeterJones WinGUP (Notepad++ updater) and all its configs migrated to Unicode recently. Maybe, what you saw was something different.

              P 1 Reply Last reply Feb 5, 2021, 8:06 PM Reply Quote 0
              • P
                PeterJones @mere-human
                last edited by Feb 5, 2021, 8:06 PM

                @mere-human , @Alan-Kilborn

                I believe what I had seen was pull #9339 commit 52e8c68 … though it looks like it’s not working yet.

                AFAIK, that is separate from wingup commit 9b193fa .

                1 Reply Last reply Reply Quote 1
                1 out of 7
                • First post
                  1/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors