Community
    • Login

    No text on selected line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    18 Posts 10 Posters 3.1k 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.
    • rdipardoR
      rdipardo @PeterJones
      last edited by

      @PeterJones said in No text on selected line:

      [Y]ou also might want to go create an issue for the plugin so that the plugin author can track it in the issues tracker.

      Someone did, about four months ago:

      Transparent cursor line turns completely black when changing style in NPP 8.6

      1 Reply Last reply Reply Quote 3
      • Z
        zorchenhimer
        last edited by zorchenhimer

        I am having the same issue, but I do not have the CSVLint plugin installed. I’ve tried changing the selected text highlight color, current line background color, forcing a global override of the foreground color, uninstalling other unused plugins, and nothing’s worked.

        I did notice that before I changed to dark mode, highlighting in light mode did not work at all. I could select and copy text, but there was no visual indication of which text was selected.

        Debug info if this helps:

        Notepad++ v8.6.5   (64-bit)
        Build time : Mar 29 2024 - 17:04:43
        Path : C:\Program Files\Notepad++\notepad++.exe
        Command Line : 
        Admin mode : OFF
        Local Conf mode : OFF
        Cloud Config : OFF
        Periodic Backup : ON
        OS Name : Windows 11 Pro (64-bit
        OS Version : 21H2
        OS Build : 22000.2057
        Current ANSI codepage : 1252
        Plugins : 
            ExtSettings (1.3.1)
            mimeTools (3.1)
            NppConverter (4.6)
        
        

        3b76829e-4e19-4b4a-a733-f8bbd94cc054-image.png

        PeterJonesP 1 Reply Last reply Reply Quote 0
        • Michael VincentM
          Michael Vincent @PeterJones
          last edited by

          @PeterJones

          Different plugin, but looks like same issue:

          https://github.com/pnedev/comparePlus/issues/362

          Details how ComparePlus solved it.

          Cheers.

          1 Reply Last reply Reply Quote 1
          • PeterJonesP
            PeterJones @zorchenhimer
            last edited by

            @zorchenhimer ,

            You appear to have edited your DarkModeDefault theme. You may have done something that makes the colors incompatible.

            With default colors for DarkModeDefault theme, selection and active line are both visible;
            c859961e-65f0-4697-be9c-c3e85dfd3c02-image.png

            Make sure you do not still have any Global Override settings checkmarked; it was a reasonable experiment, but most users do not understand them, so it confuses their interpretation of what’s going on.

            here are a few more of the color settings for a working DarkModeDefault:

            default ec92cc07-ac3a-4375-b480-b95a32fc9653-image.png
            current line background c755ccab-a4ba-4d05-9906-67c6e8163a08-image.png
            selected text color above
            multi-selected-text color db05d116-bb9c-46df-8997-e3b875c0cded-image.png
            Bas de ReuverB Z 2 Replies Last reply Reply Quote 2
            • Bas de ReuverB
              Bas de Reuver @PeterJones
              last edited by

              Thanks for posting this, yes this is a long-standing bug and a known issue. Unfortunately I don’t have much time to work on the CSV Lint plug-in at the moment.

              In the CSV Lint Settings dialog, you can set the “TransparentCursor” setting to False, or, when it’s set to True, you can open and close the Setting dialog to reset the caret line to transparent.

              Both are work-arounds and both are less than ideal. In the latest version of CSV Lint this setting is False by default. I’ve tried to fix the transparency/opaque issue in the past without success, and honestly I’d much rather scrap the feature entirely, see also this post.

              @PeterJones said in No text on selected line:

              multi-selected-text color

              Btw I’ve got Notepad++ 8.6.5 and I don’t see this “multi-selected-text color” item in the Style dialog(?)

              PeterJonesP 1 Reply Last reply Reply Quote 1
              • PeterJonesP
                PeterJones @Bas de Reuver
                last edited by PeterJones

                @Bas-de-Reuver said in No text on selected line:

                I’ve got Notepad++ 8.6.5 and I don’t see this “multi-selected-text color” item in the Style dialog(?)

                It’s there in a new version installation/unzip. If you updated, then as with all the XML files, Notepad++ doesn’t overwrite your %AppData% config XML, because it doesn’t want you to lose customizations. But that means that you might be missing new attributes/settings that have been introduced since your fresh installation. (See the UserManual section on Upgrading a portable installation, which also notes it works with upgrading config files on an installed version.)

                But, specific to this:

                Have you checked stylers.model.xml? Because that does get updated, even when %AppData% doesn’t, so it should always match your most recently-installed version.

                42a12ee2-8e87-4051-9e10-184100067e97-image.png

                If it’s in stylers.model.xml but not in your active stylers.xml or theme xml, then you can copy it from there into your active setup, then restart. (Or, as I suggested in January near the top of this Topic, compare your theme to the one in a recent portable, and bring over any new attributes that your theme is missing. Again, the User Manual section I just mentioned may be helpful.)

                1 Reply Last reply Reply Quote 1
                • Z
                  zorchenhimer @PeterJones
                  last edited by

                  @PeterJones The reason I’ve gone down this rabbit hole is because the defaults were broken in the first place.

                  29b57ce0-ea3f-4fee-b527-49cd55f1c88d-image.png

                  6a55c86e-4856-4f61-9b2a-113be97113a9-image.png

                  717036e3-48b3-41ae-98c1-7a71d3dff41e-image.png

                  bcf440c0-a3a1-439e-a6ee-4dc96f62779c-image.png

                  The only global override I have set is the font:
                  10771ce2-aa09-4e05-84b2-d6cf34cb7a2e-image.png

                  PeterJonesP 1 Reply Last reply Reply Quote 0
                  • PeterJonesP
                    PeterJones @zorchenhimer
                    last edited by

                    @zorchenhimer said in No text on selected line:

                    @PeterJones The reason I’ve gone down this rabbit hole is because the defaults were broken in the first place.

                    As I showed above, a fresh portable unzip has reasonable settings for DarkModeDefault.

                    717036e3-48b3-41ae-98c1-7a71d3dff41e-image.png

                    That is not the default background color for DarkModeDefault’s “Selected text colour”. The RGB is 0x585858 (88,88,88 in decimal, for each of red, green, blue)

                    Also, based on the yellowish tinge to your dd shown just to the left of Style Configurator, and the color of your nable to open live dir for, there is some interaction of styles I’m not expecting – one, because I wasn’t expecting yellowish text on the dd, and two, because “Current Line Background” is a background-only color, so the foreground color on that whole line should match your “Default Style” foreground color, but it’s not.

                    Again, I highly recommend you start over with a fresh, unedited portable Notepad++ in DarkModeDefault, and re-confirm with plain text, using examples like I showed above

                    This is normal text
                    Cursor on this line, SELECTION IS HERE, between the commas
                    Another line
                    

                    and place your selection across SELECTION IS HERE.
                    By default, that will look like
                    5b33a2aa-e834-474a-b9f6-ed3a352e10f7-image.png

                    Even if you then change the “Selected text colour” background to your 128,64,64 choice, it’s perfectly readable:
                    f1c9ae56-609d-4564-81d6-fbe9732068b1-image.png

                    The only global override I have set is the font:

                    No need. If you want to set the normal font, set it in Default Style, and (nearly) all of the other styles correctly inherit the font from the Default Style font.

                    Z 1 Reply Last reply Reply Quote 0
                    • Z
                      zorchenhimer @PeterJones
                      last edited by

                      @PeterJones The issue was a different unrelated plugin. I don’t know which one because I uninstalled all of them in frustration, but it wasn’t the CSV Lint plugin as mentioned above (I never had that installed in the first place).

                      A fresh install didn’t change anything because the settings didn’t get overwritten. But after screwing around with nuking the settings and diffing between a backup and the new ones I found that the only real differences were related to plugins (PluginDlg tags in the config.xml).

                      PeterJonesP 1 Reply Last reply Reply Quote 1
                      • PeterJonesP
                        PeterJones @zorchenhimer
                        last edited by PeterJones

                        @zorchenhimer said in No text on selected line:

                        A fresh install didn’t change anything because the settings didn’t get overwritten.

                        Please note, I did not recommend a fresh install, though you may have not understood the implication, because I wasn’t explicit enough in my phrasing. I recommended a fresh portable edition. I forgot to clarify (because “portable” always implies this, in my mind, and I forget not everyone knows this off the top of their head) that the “portable” means to download the “Portable (zip)” from the official downloads, and unzip it into a temporary directory; you then run from that unzip, which will keep all its settings in that unzip, and not try to use your installed settings at all. (I used to always say that, but I’ve apparently gotten lazy about just using “fresh portable” as a shorthand for that full descriptive sentence; I’ll have to go back to using my longer description when trying to get people to temporarily try a portable.)

                        But trying a portable edition is a way to try to “go back to default condition” temporarily, without messing with your installed version, until we know the culprit. That’s why I was trying to recommend that, to help debug your problem, without your installed version getting in the way.

                        The issue was a different unrelated plugin. I don’t know which one because I uninstalled all of them in frustration,

                        It’s a bummer that your Debug Info that you shared didn’t match the reality of the version you were using when you had the problem. Because your Debug Info showed you were using nothing but the default plugins, so we assumed the problem for you wasn’t a plugin. I would have described a different debug procedure if I’d known you had other plugins.

                        Z 1 Reply Last reply Reply Quote 3
                        • Z
                          zorchenhimer @PeterJones
                          last edited by

                          @PeterJones I had done the additional troubleshooting before I came back to this thread, so I hadn’t read your response before I figured it out. Sorry.

                          And the issue persisted even when I just had the three plugins from the debug info. Something probably related, but in light mode highlighting completely stopped working, at least visually (I could still copy text, just not see what I had just copied).

                          1 Reply Last reply Reply Quote 0
                          • PeterJonesP PeterJones referenced this topic on
                          • M
                            mtref
                            last edited by

                            The solution on my side plugin called CSV Lint
                            I do this steps
                            Notpad++ > Plugins > CSV Lint > Settings > Colors > Normal Mode or Dark mode (foreground colors) > Yes > OK > manual restart notepad++

                            this should fix your issue and that happen when you try to change the theme and than back to default, and thanks @ibrummel for the hint of CSV Lint plugin

                            K 1 Reply Last reply Reply Quote 0
                            • K
                              klaus-maus @mtref
                              last edited by

                              @mtref Thanks that resolved my issue! :)

                              1 Reply Last reply Reply Quote 0
                              • E
                                elnecesario
                                last edited by

                                I had the same issue but didn’t investigate the involvement of plugins. The issue appeared after changing the Dark Mode to “Follow Windows”.

                                After switching the preference back and forth and restarted Notepad++, the issue was fixed.
                                Steps: Settings > Preferences > Dark Mode > Light mode / Dark mode / Follow Windows > Restart Notepad++

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