• Login
Community
  • Login

Good old highlighting issue topic

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
15 Posts 3 Posters 843 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.
  • A
    Alan Kilborn @Sabuzaki
    last edited by Oct 12, 2022, 1:55 PM

    @Ivan-M said in Good old highlighting issue topic:

    how can I put a custom foreground color to ordinary text file (After choosing a Theme)? As .txt format is not there at the left side menu “Languages” column.

    Use Default Style.

    S 1 Reply Last reply Oct 12, 2022, 1:59 PM Reply Quote 1
    • S
      Sabuzaki @Alan Kilborn
      last edited by Oct 12, 2022, 1:59 PM

      @Alan-Kilborn
      I selected Default theme and when changing Foreground, it doesn’t change, but works for the background color (see below selected blue but text still dark).

      41da6e10-36d9-4816-b9ec-a476f652d94f-image.png

      S 1 Reply Last reply Oct 12, 2022, 2:00 PM Reply Quote 0
      • S
        Sabuzaki @Sabuzaki
        last edited by Oct 12, 2022, 2:00 PM

        @Ivan-M
        I guess because “Enable Global Background color” is still ticked.

        1 Reply Last reply Reply Quote 0
        • P
          PeterJones @Sabuzaki
          last edited by Oct 12, 2022, 2:09 PM

          @Ivan-M ,

          Yes, the definition of “Global override” is that anything you checkmark in that style will override the color for all styles in all languages. So if you have anything checkmarked in “Global override”, then it will by definition mask the syntax highlighting for the Python Language and any other language. That is the reason for the existence of the “Global override”.

          @Alan-Kilborn said,

          Use Default Style.

          Then @Ivan-M replied,

          I selected Default theme

          Those two phrases are not the same, and mean different things.

          The right way to change the foreground and/or background colors for plain text files are in the Style: column’s Default Style entry. Alan said “Default Style”, because he wanted you to click on the words Default Style

          1bf5165d-70e6-44de-b34d-9fdc2daa6a08-image.png

          A 1 Reply Last reply Oct 12, 2022, 2:19 PM Reply Quote 0
          • A
            Alan Kilborn @PeterJones
            last edited by Oct 12, 2022, 2:19 PM

            @PeterJones said in Good old highlighting issue topic:

            Alan said “Default Style”, because he wanted you to click on the words Default Style

            I thought that fairly obvious because Default Style appears right below Global override, which was under discussion already. I suppose I could have been more explicit.

            BTW, isn’t the stuff in the user MANUAL describing all this fairly clear?

            P 1 Reply Last reply Oct 12, 2022, 2:44 PM Reply Quote 0
            • P
              PeterJones @Alan Kilborn
              last edited by Oct 12, 2022, 2:44 PM

              @Alan-Kilborn said in Good old highlighting issue topic:

              BTW, isn’t the stuff in the user MANUAL describing all this fairly clear?

              I thought so (though I am biased). I will tweak the phrasing, and try to emphasize the difference between Global Override and Default Style even more than was already done.

              Besides, as we know, no one reads user manuals anyway

              A 1 Reply Last reply Oct 12, 2022, 2:46 PM Reply Quote 1
              • A
                Alan Kilborn @PeterJones
                last edited by Oct 12, 2022, 2:46 PM

                @PeterJones said in Good old highlighting issue topic:

                Besides, as we know, no one reads user manuals anyway

                Well… it gets easier on the people answering questions here if the advice is simply “RTFM”.

                P 1 Reply Last reply Oct 12, 2022, 2:53 PM Reply Quote 0
                • P
                  PeterJones @Alan Kilborn
                  last edited by PeterJones Oct 12, 2022, 2:55 PM Oct 12, 2022, 2:53 PM

                  @Alan-Kilborn

                  old new comment
                  a5b47182-52ad-48f2-91f6-713ee2268608-image.png fd20ff91-644a-4373-8f3c-339325eaae30-image.png I pulled the buried sentence out to a separate paragraph to make it more obvious
                  e55c4866-698b-4836-9396-32c07cdf50c5-image.png a3446e6d-7c5e-4df7-a441-62738e606e01-image.png I added bullet points under Global override and Default style to emphasize what they are for
                  S 1 Reply Last reply Oct 13, 2022, 9:06 AM Reply Quote 1
                  • S
                    Sabuzaki @PeterJones
                    last edited by Sabuzaki Oct 13, 2022, 9:09 AM Oct 13, 2022, 9:06 AM

                    @PeterJones @Alan-Kilborn

                    Hey,

                    I confess I did not RTFM and it was obvious that Default Style was below Global Override which I did not see :)
                    But I can tell it wasn’t easy to understand that menu. So to change the default text you must go to “Style Configurator” > Select Theme > Language Global Styles > Default style under Style column> select Foreground.

                    Again, I can confirm I have read zero pages of manual for Notepad++, but the confusion comes for the multiple words of “style” “global” “default” “override”.

                    At minimum I feel “Global Styles” should be named as “Global Language” or “All” as in the same column we have languages and not styles.

                    Then, why do we have separate menu “Global override” and “Default Style” as same can be done in one section? If I set “Default Font” to green (thus I want green in my txt and all files), I can have an option under same “Default Style” menu to override this green color to all languages?

                    Although, I might be missing some use case here what some other users might be trying to do…

                    7ef23708-fac0-425f-8123-7a8bbfd88f9d-image.png

                    But anyways, I think I got how all it works:) Out of curiosity, where is the setting which configures URL link settings. I went through all the “Style column” under “Global Styles” column and I did not find any setting which has enabled underline (but my current URLs are with underline).

                    A P 2 Replies Last reply Oct 13, 2022, 11:57 AM Reply Quote 0
                    • A
                      Alan Kilborn @Sabuzaki
                      last edited by Oct 13, 2022, 11:57 AM

                      @Ivan-M said in Good old highlighting issue topic:

                      where is the setting which configures URL link settings

                      3a8f4284-8d3a-4cef-a513-44ccdda697f3-image.png

                      1 Reply Last reply Reply Quote 0
                      • P
                        PeterJones @Sabuzaki
                        last edited by Oct 13, 2022, 1:46 PM

                        @Ivan-M said in Good old highlighting issue topic:

                        Then, why do we have separate menu “Global override” and “Default Style” as same can be done in one section? If I set “Default Font” to green (thus I want green in my txt and all files), I can have an option under same “Default Style” menu to override this green color to all languages?
                        Although, I might be missing some use case here what some other users might be trying to do…

                        You (or I) not being able to think of a use case doesn’t mean that plenty don’t exist. After some thought, one such use case I thought of is usually wanting plain text to have green-on-blue (like you showed), but occasionally wanting to temporarily change so that there is no syntax highlighting, and everything is black-on-white. If the Default and Override styles were on the same page, such a use-case would have to 1. Change Default > Foreground, 2. Change Default > Background, 3. Enable global overrides on those colors. Then, when done, have to change those all back. OTOH, with two separate menus/styles, to temporarily get the everything-black-on-white just requires toggling the two checkboxes on the Global Overrides to enable the override, then toggle them again when done – so about half as much work. (And if the specific colors in play aren’t in the 48 main colors, changing from the black-on-white to the green-on-blue is even harder, since it might require going into the “more colors” page to enter the desired RGB)

                        Given the years of history with that as the interface and separation-of-concepts that has become ingrained, I think it would be a Bad Idea™ to do such a drastic change, as it would bring a lot of people out of the woodwork to complain. I’d even be reluctant to change the name of the Language at this point. I do think that trading positions of Default Style vs Global override could be useful – that way, new users would be more likely to try to change the “default” than the “override” and thus get what they want; but I’d be mildly reluctant to even suggest that change, personally.

                        Especially since the confusion can be easily remedied by Reading The Fabulous Manual. ;-)

                        S 1 Reply Last reply Oct 14, 2022, 7:50 AM Reply Quote 1
                        • S
                          Sabuzaki @PeterJones
                          last edited by Oct 14, 2022, 7:50 AM

                          @PeterJones @Alan-Kilborn

                          Thanks for fabulous help, case solved :)

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