Community
    • Login

    Preview value color RGB, HEX, HSL.

    Scheduled Pinned Locked Moved General Discussion
    previewcolorpreviewcolors
    17 Posts 6 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.
    • ThIsLinkedT
      ThIsLinked @PeterJones
      last edited by

      @peterjones, thanks, I’ll take a look.

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

        @thislinked said in Preview value color RGB, HEX, HSL.:

        You are not the developer of this QCP, but as in my case, this plugin is simply useless if it cannot do the job.

        Apparently, the QCP doesn’t recognize < as ending a color hex sequence. It does recognize a space or a " or a ; as valid character to come after the hex. And it doesn’t recognize an 8-nibble HEX as a valid RGB color.

        051028d3-a770-444c-96bf-ccaafdeda05f-image.png

        I wouldn’t call that useless. Just something that could be improved.

        If you don’t have any other ideas, then perhaps we should close this question if it doesn’t crown a successful solution.

        This isn’t a Question and Answer board where we “close questions”. This is a Community Forum, where we are here to discuss things.

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

          …
          Interesting. My ColorizeHtmlCssColors script isn’t picking up on the ones in the style tags, but does pick up the examples like you showed. (Also, it only does #RRGGBB, not rgb(…) or #AARRGGBB)

          ce678940-1c12-46a4-9498-653ceb455edc-image.png

          I hadn’t used my script in months (I don’t actually deal with color terms in my normal workflow), so I’d forgotten: you run it once to colorize, and another to remove the colors. But what I did remember, but probably didn’t make clear, is that if you edit a color text after running, it doesn’t update on the fly, so you then have to uncolor and recolor to get it to update.

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

            @peterjones said in Preview value color RGB, HEX, HSL.:

            Apparently, the QCP doesn’t recognize < as ending a color hex sequence

            @ThIsLinked

            It does now …

            Cheers.

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

              @peterjones said in Preview value color RGB, HEX, HSL.:

              My ColorizeHtmlCssColors script isn’t picking up on the ones in the style tags

              Actually, it was, but Notepad++'s lexer coloring for being an attribute was overriding my scripts indicator. If I switch to normal text (so no lexer is active), it shows the color even inside the attribute:
              97bdba40-5fe5-4374-8227-6e3333cb39af-image.png

              I am working on updating my script: it now allows #AARRGGBB as well. Eventually, as I find time, I might also add in the rgb(_,_,_) syntax as well, but I’ve got a meeting in a few minutes, so not right away.

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

                @michael-vincent said in Preview value color RGB, HEX, HSL.:

                It does now …

                I did confirm:
                b6dc4c20-b2be-4327-8838-0550119e118f-image.png

                So it’s working better than my script again, since it works even with a lexer active, and accepts other endings. :-)

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

                  Updated the github copy of the script again…

                  Using dash rather than foreground. allow rgb(##,##,##) to work

                  bfe892f0-5613-4053-a30c-df5f3f761681-image.png

                  1 Reply Last reply Reply Quote 1
                  • Catrin BrooksC
                    Catrin Brooks
                    last edited by

                    Good script!

                    1 Reply Last reply Reply Quote 0
                    • Alan KilbornA Alan Kilborn referenced this topic on
                    • Michael VincentM Michael Vincent referenced this topic on
                    • Michael VincentM Michael Vincent referenced this topic on
                    • Michael VincentM Michael Vincent referenced this topic on
                    • Michael VincentM Michael Vincent referenced this topic on
                    • Rob DFR
                      Rob DF
                      last edited by

                      Hi guys,
                      Notepad++ v 8.7.5 does not show the colors on the bottom of the code i.e. the small yellow line under #FF0000 with QCP 2.1.2.1.
                      Is it normal?

                      xomxX 1 Reply Last reply Reply Quote 0
                      • xomxX
                        xomx @Rob DF
                        last edited by

                        @Rob-DF

                        Try to disable the DirectWrite mode (uncheck N++ menu Settings > Preferences… > MISC. > “Use DirectWrite” checkbox).

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