Community
    • Login

    Style quirk in Windows 7

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 2 Posters 4.7k 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.
    • Strider496S
      Strider496
      last edited by

      I have Notepad++ set as the default program for .txt files. If I start the program and then open a file, I get the style settings I expect (gray text on a black background). But if I open the file by double-clicking it in Windows Explorer, I get black text on a white background. The white background isn’t full screen width; it’s one character wider than the text in each line. The rest of the screen is black.

      The view will switch to the correct style if I go into the style configurator and do pretty much anything. Check a box, any box, and then cancel. So I have a workaround, but it’s annoying. Any thoughts?

      Thanks,
      Bill

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Strider496
        last edited by

        @Strider496 do you use a predefined theme or did you create one yourself?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Strider496S
          Strider496
          last edited by

          I use Bespin, and I’ve enabled gobal font (Lucida Console) and global font size (12).

          More info: I get this same behavior if I open NPP and it creates a “new x” file. And once I focus on a file that’s displayed correctly, all other open files are fixed the next time I look at them.

          The other thing I’ll say is that I’m a total newbie, and I installed a bunch of plugins that I thought might be interesting. Could this be related to a plugin?

          Thanks!

          Claudia FrankC 1 Reply Last reply Reply Quote 1
          • Claudia FrankC
            Claudia Frank @Strider496
            last edited by

            @Strider496,

            plugins can and do interact with notepad++ and scintilla, so yes, it might be that this is related to one of the plugins.
            The easieast to check would be to start npp with the -noPlugin switch. This causes npp to ignore, not to uninstall, the plugins.
            May I ask you to do so and check if it is still same behaviour?

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • Strider496S
              Strider496
              last edited by

              [Forced wait of 1200 seconds …]
              :)

              Yes, that appears to fix it. I’m fine with uninstalling all the plugins, and then adding them back when/if I actually need them. Unless you have a better idea …

              Claudia FrankC 1 Reply Last reply Reply Quote 1
              • Claudia FrankC
                Claudia Frank @Strider496
                last edited by

                Well, from remote, it’s hard to say which plugin or whether a combination of plugins may have caused this, therefore I would say
                your way is the best at the moment.

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • Strider496S
                  Strider496
                  last edited by

                  Okay, all is well. It turns out that the culprit was NPPCALC, which I can certainly do without.

                  One other sort-of-related thing: when I was first trying this out several weeks ago, I started with a portable installation, and changes I made in style configurator were not persistent. Close NPP and reopen, and you’re back to the default style settings.

                  At the time, I couldn’t post here, but I bypassed the problem by doing a regular Windows install. I’m just mentioning this in case somebody wants to take a look at it.

                  Thanks for the FABULOUS assistance, Claudia!

                  Cheers,
                  Bill

                  Claudia FrankC 1 Reply Last reply Reply Quote 0
                  • Claudia FrankC
                    Claudia Frank @Strider496
                    last edited by

                    Hello Bill,

                    Thanks for the FABULOUS assistance, Claudia!

                    your welcome.

                    One other sort-of-related thing: when I was first trying this out several weeks ago, I started with a portable installation, and changes I made >in style configurator were not persistent. Close NPP and reopen, and you’re back to the default style settings.

                    there are several portable versions out there and they behave differently in term how to store the data. I refer to the “official”
                    portable version, which is the zip or 7z file you can download on the npp homepage. When using this one, it works as long as
                    you use the same drive layout on all computers, which, I agree, isn’t normally the same.
                    The reason is, that, for example, the theme stored in config.xml uses the complete instead of a relative path.
                    You can change this by editing, with an editor other than npp, the config.xml directly but be aware that changing any other gui option would overwrite it again.
                    Request to change this has been already adressed.

                    So, current situation is like this

                    <GUIConfig name="stylerTheme" path="D:\ProgramData\notepad++\themes\Bespin.xml" />
                    

                    but by changing it to

                    <GUIConfig name="stylerTheme" path=".\themes\Bespin.xml" />
                    

                    it can be used on an usb stick without a problem.

                    Cheers
                    Claudia

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