Community
    • Login

    changing new edit line color

    Scheduled Pinned Locked Moved General Discussion
    12 Posts 4 Posters 7.9k 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.
    • William L. WolcottW
      William L. Wolcott
      last edited by

      Hello … I have searched EXTENSIVELY but can’t find how to change the line background/text colors in two situations:

      1. The first is if I edit a line and move the cursor to change to a different line. The line colors change from black background/ white text to light orange background/white text.

      2. Then, when I Save, all edited lines change from light orange background/white text to light green background/white text.

      Where can I choose what colors those changes produce?

      THANK YOU !!!

      PeterJonesP Michael VincentM 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @William L. Wolcott
        last edited by

        @William-L-Wolcott

        1. Colors are defined in the Settings > Style Configurator > Language: Global Styles. The Style: CurrentLineBackground sets the background for the line the cursor is on; other lines are set either by Style: Default Style or whatever other style happens to be active for that line.

        2. Hitting Save doesn’t change the colors used. Do you have a plugin that tracks active changes? Sharing the ?-menu, Debug Info entry will tell us all the plugins you have.

        1 Reply Last reply Reply Quote 0
        • William L. WolcottW
          William L. Wolcott
          last edited by

          Thank you, PeterJones. Here is the Debug info:

          Notepad++ v8.1.2 (32-bit)
          Build time : Jul 16 2021 - 01:56:21
          Path : D:\My Documents\Notepad++\notepad++.exe
          Command Line :
          Admin mode : OFF
          Local Conf mode : ON
          Cloud Config : C:\Template
          OS Name : Windows 10 Enterprise (64-bit)
          OS Version : 2009
          OS Build : 19042.985
          Current ANSI codepage : 1252
          Plugins : BracketsCheck.dll ColorPicker.dll ComparePlugin.dll DSpellCheck.dll EmmetNPP.dll Explorer.dll HTMLTag_unicode.dll ImgTag.dll IndentByFold.dll linefilter2.dll LocationNavigate.dll mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll NppJumpList.dll NppQCP.dll NppSnippets.dll NppSync.dll NppTaskList.dll NppTextFX.dll NppXmlTreeviewPlugin.dll PluginManager.dll ReloadButton.dll RunMe.dll SessionMgr.dll SnippetPlus.dll SpellChecker.dll tagsjump.dll TagsView.dll Tidy2.dll WebEditU.dll XBrackets.dll _CustomizeToolbar.dll

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @William L. Wolcott
            last edited by

            @William-L-Wolcott ,

            That’s a lot of plugins. I don’t recognize them all, but for #2, my bet is that one of the plugins is changing the styling on-the-fly. Try running notepad++ with its -noPlugin command-line option, and see if the colors still behave strangely like you described in #2.

            Side note: you didn’t ask, but you should uninstall PluginManager.dll . That DLL was for an old plugin-management system which hasn’t been compatible with Notepad++ for years (since v7.6 in 2018). If you leave it installed, you will be tempted to use it, which will only serve to confuse you. The builtin Plugins Admin tool in the Plugins menu is the right way to install/update/uninstall plugins.

            1 Reply Last reply Reply Quote 1
            • William L. WolcottW
              William L. Wolcott
              last edited by

              I will try all of that. THANK YOU !!!

              1 Reply Last reply Reply Quote 0
              • Michael VincentM
                Michael Vincent @William L. Wolcott
                last edited by

                @William-L-Wolcott said in changing new edit line color:

                The first is if I edit a line and move the cursor to change to a different line. The line colors change from black background/ white text to light orange background/white text.

                Then, when I Save, all edited lines change from light orange background/white text to light green background/white text.

                That sounds a LOT like “Location Navigate” (LocationNavigate.dll plugin). You may want to play with the Plugins => Location Navigate menu options or just disable it completely to see if the problem goes away.

                Cheers.

                1 Reply Last reply Reply Quote 1
                • William L. WolcottW
                  William L. Wolcott
                  last edited by

                  Thank you, Michael.
                  I will try that.

                  The color changes are REALLY helpful and useful, since you can instantly see all of your edits by the color change.

                  At one point, I had set the initial change to red background with white text. And if I Saved the file, that would change to blue with white text. It’s really helpful when working on many files at the same time to see which are changed and which aren’t.

                  Unfortunately, when N++ upated, those settings were lost and now I can’t remember how I changed them.

                  1 Reply Last reply Reply Quote 1
                  • Alan KilbornA
                    Alan Kilborn
                    last edited by

                    FWIW, I stopped using LocationNavigate in favor of ChangedLines. Showing the changed lines was only a part of what LocationNavigate did/does, and I never used its other features. ChangedLines shows the changed lines better anyway, and that is all it does. You might want to give that a try, instead.

                    Also, seriously consider reducing your amount of plugins. Since you don’t know what was coloring your lines, I bet there’s a lot of other plugin functionality you have that you don’t remember either. Time to declutter.

                    1 Reply Last reply Reply Quote 2
                    • William L. WolcottW
                      William L. Wolcott
                      last edited by

                      Michael and Alan, I removed LocationNavigate and that indeed resolved the problem! No more line color changes. Ha! … I’m going to miss it!!! THANK YOU.

                      Alan, I do not find ChangedLines in PluginsAdmin !??!?

                      Alan KilbornA 1 Reply Last reply Reply Quote 0
                      • Alan KilbornA
                        Alan Kilborn @William L. Wolcott
                        last edited by

                        @William-L-Wolcott said in changing new edit line color:

                        I do not find ChangedLines in PluginsAdmin

                        Michael can answer that one. Michael? ;)

                        Michael VincentM 1 Reply Last reply Reply Quote 0
                        • William L. WolcottW
                          William L. Wolcott
                          last edited by

                          GOOD GRIEF … I solved the whole mystery and feel really stupid.

                          The color changes for “Mark Color” and “Save Color” are in the “Show List and Options” of LocationNavigate!!!

                          When it opened on my screen, it was a very narrow window that cut-off those options !!! I never saw them. When I removed LocationNavigate, the “problem” disappeared. So, I reinstalled it and went through the menu options again but this time widened the Location History window … and there were the settings at the bottom of the screen. Geez!!!

                          So, now I can set those to any color I want. :)

                          I HIGHLY RECOMMEND THIS FEATURE. It’s very useful.

                          Again, THANK YOU all for your time and expertise …

                          1 Reply Last reply Reply Quote 2
                          • Michael VincentM
                            Michael Vincent @Alan Kilborn
                            last edited by

                            @William-L-Wolcott
                            @Alan-Kilborn said in changing new edit line color:

                            @William-L-Wolcott said in changing new edit line color:

                            I do not find ChangedLines in PluginsAdmin

                            Michael can answer that one. Michael? ;)

                            Changed Lines is ported from Location Navigate because I could not get Location Navigate to not crash on me in 32-bit version and there was no 64-bit version. That has been fixed now, but I prefer my plugin so use that. If you have Location Navigate working to you liking now, stick with it!

                            Cheers.

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