• Login
Community
  • Login

Is There A Plugin That Highlights Hex?

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
11 Posts 5 Posters 923 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.
  • R
    Robin Ramy
    last edited by May 3, 2024, 6:13 AM

    The Title Is Pretty Self Explainatory If You Ask Me

    E 1 Reply Last reply May 3, 2024, 6:44 AM Reply Quote -1
    • E
      Ekopalypse @Robin Ramy
      last edited by Ekopalypse May 3, 2024, 6:44 AM May 3, 2024, 6:44 AM

      @Robin-Ramy

      Unfortunately, it’s not that obvious.
      It could be that you mean something like intel hex or that you mean that any hexadecimal value in a document should be automatically highlighted, which is normally done by the lexer assigned to that document.
      If this is not done by the lexer, then you might consider using something like the EnhanceAnyLexer plugin, which can be installed via the PluginAdmin.
      Or you might mean something else.

      R 1 Reply Last reply May 3, 2024, 6:48 AM Reply Quote 2
      • R
        Robin Ramy @Ekopalypse
        last edited by May 3, 2024, 6:48 AM

        @Ekopalypse

        I Mean The Color Hex Like: #4A959B
        Get It?

        E A M 3 Replies Last reply May 3, 2024, 6:52 AM Reply Quote -2
        • E
          Ekopalypse @Robin Ramy
          last edited by May 3, 2024, 6:52 AM

          @Robin-Ramy

          This should normally be done by the lexer.
          I assume you are talking about HTML documents?

          1 Reply Last reply Reply Quote 0
          • A
            Alan Kilborn @Robin Ramy
            last edited by May 3, 2024, 11:27 AM

            @Robin-Ramy said in Is There A Plugin That Highlights Hex?:

            Get It?

            Keep going with your lack of explanations and your "Get It?"s and play a bunch of back and forth all day, as those that try to help you struggle to do so.

            Or… explain fully what you want/need and stop wasting time.

            Your choice.

            R 1 Reply Last reply May 3, 2024, 3:24 PM Reply Quote 4
            • M
              Michael Vincent @Robin Ramy
              last edited by May 3, 2024, 11:36 AM

              @Robin-Ramy said in Is There A Plugin That Highlights Hex?:

              Get It?

              Yes, now I get it. And to answer your “Self Explainatory” (sic) title, Yes there is.

              Cheers.

              R 1 Reply Last reply May 3, 2024, 2:35 PM Reply Quote 1
              • R
                Robin Ramy @Michael Vincent
                last edited by May 3, 2024, 2:35 PM

                @Michael-Vincent
                Well What’s It’s Name?

                M 1 Reply Last reply May 3, 2024, 2:59 PM Reply Quote 0
                • M
                  Michael Vincent @Robin Ramy
                  last edited by May 3, 2024, 2:59 PM

                  @Robin-Ramy said in Is There A Plugin That Highlights Hex?:

                  Well What’s It’s Name?

                  Sorry, you just asked if one existed, not what its name is.

                  I depends, if you’re on 32-bit I think it’s “NppQCP”, if you’re on 64-bit it’s “QuickColorPicker”. Of course there are some caveats to get them running, like DirectWrite, but I think that’s pretty self-explanatory.

                  Cheers.

                  1 Reply Last reply Reply Quote 2
                  • R
                    Robin Ramy @Alan Kilborn
                    last edited by May 3, 2024, 3:24 PM

                    Well I’m Sorry,
                    Here’s What I Mean:
                    Y’know The “Visual Studio Code” Extention That Makes Hex Highlight Colors?

                    It’s Name Is: “Color Highlight”
                    And Yeah I Just Want Something That Makes It Like This
                    Screenshot_3.png
                    Or Maybe Close Enough

                    Hex Color Codes Highlighter
                    Thank You

                    M 1 Reply Last reply May 3, 2024, 5:16 PM Reply Quote 0
                    • M
                      Michael Vincent @Robin Ramy
                      last edited by May 3, 2024, 5:16 PM

                      @Robin-Ramy said in Is There A Plugin That Highlights Hex?:

                      Here’s What I Mean:

                      Better, but you should include your ?=>Debug Info information. I’ll assume 64-bit since that’s what I have. Here’s what you can get:

                      e01eadfa-3345-4ef5-898f-8d9fcbd3eb00-image.png

                      You’ll need QuickColorPicker , 2.2.1.1 (latest as of this posting) and you’ll need to install manually.

                      1. Download the appropriate ZIP for your architecture
                      2. Create a directory called ‘QuickColorPicker’ in your Notepad++/Plugins directory
                      3. Unzip the QuickColorPicker.dll file into that ‘QuickColorPicker’ directory
                      4. Disable ‘DirectWrite’ : Notepad++ menu : Settings => Preferences => MISC. , uncheck “Use DirectWrite”

                      Unfortunately this is not compatible with DirectWrite so if you want to / need to keep it on, this plugin will not function.

                      Cheers.

                      1 Reply Last reply Reply Quote 4
                      • G
                        guy038
                        last edited by guy038 May 4, 2024, 12:22 PM May 4, 2024, 12:21 PM

                        Hello, @robin-ramy, @ekopalypse, @alan-kilborn, @michael-vincent and All,

                        @michael-vincent, I tried your very fresh new release v2.2.1.1 of your plugin, on my two laptops :

                        • An old 32 bits XP machine

                        • A 64 bits Windows 10 machine


                        Regarding the XP machine, it seems to not work anymore ! I suppose that this is an expected dehaviour as XP is quite out of date !

                        I don’t mind to stay with the previous 2.1.2.1 release on my old laptop.

                        BTW, this previous version seems to work even if I check the Use DirectWrite option. But, I suppose that it’s just because, globally, the DirectWrite technology does not work properly with Win XP ?


                        Now, regarding the W10 64 bits machine, no trouble at all ! However, I noticed some oddities about the coloring !

                        Note that these oddities are identical on both 32 and 64 versions of your plugin, for the two releases 2.1.2.1 and 2.2.1.1

                        As a reminder, the coloring is visible ONLY IF a document is opened with one of these four languages :

                        • CSS

                        • HTML

                        • JavaScript

                        • XML


                        So, @michael-vincent :

                        • Insert this text below in a new tab
                            •-------------------------------------------•---------------------------------------------•--------------------•
                            |                                           |             W10 64 bits machine             | XP 32 bits machine |
                            |                                           •---------------------------------------------•--------------------•
                            |                                           |        N++ 8.6.5   64 bits / 32 bits        | N++ 7.9.2 32 bits  |
                            |                                           •---------------------------------------------•--------------------•
                            |                                           |  Version  2.1.2.1 / 2.2.1.1   32 / 64 bits  |  2.1.2.1  32 bits  |
                            •-------------------------------------------•---------------------------------------------•--------------------•
                            | #ECBA57                                   |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | rgb(236,186,87)                           |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | rgba(236,186,87,1)                        |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | hsl(40,0.80,0.63)                         |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | hsl(40,80%,63%)                           |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | hsla(40,0.80,0.63,1)                      |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | hsla(40,80%,63%,1)                        |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            |                                           |                                             |                    |
                            | <some_tag>#ECBA57</some_tag>              |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | <some_tag>rgb(236,186,87)</some_tag>      |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | <some_tag>rgba(236,186,87,1)</some_tag>   |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | <some_tag>hsl(40,0.80,0.63)</some_tag>    |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | <some_tag>hsl(40,80%,63%)</some_tag>      |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | <some_tag>hsla(40,0.80,0.63,1)</some_tag> |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | <some_tag>hsla(40,80%,63%,1)</some_tag>   |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            |                                           |                                             |                    |
                            |  "ECBA57                                  |                Coloring   ??                |    Coloring   ??   |
                            |                                           |                                             |                    |
                            |  "ECBA57"                                 |                Coloring   ??                |    Coloring   ??   |
                            |                                           |                                             |                    |
                            |  fgColor "ECBA57                          |                Coloring   ??                |    Coloring   ??   |
                            |                                           |                                             |                    |
                            |  fgColor "ECBA57"                         |                Coloring   ??                |    Coloring   ??   |
                            |                                           |                                             |                    |
                            |  fgColor "ECBA57  to get                  |                Coloring   ??                |    Coloring   ??   |
                            |                                           |                                             |                    |
                            |  fgColor "ECBA57" to get                  |                Coloring   ??                |    Coloring   ??   |
                            |                                           |                                             |                    |
                            |  fgColor="ECBA57                          |                Coloring   ??                |    Coloring   ??   |
                            |                                           |                                             |                    |
                            |  fgColor="ECBA57"                         |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            |  fgColor="ECBA57  to get                  |                Coloring   ??                |    Coloring   ??   |
                            |                                           |                                             |                    |
                            |  fgColor="ECBA57" to get                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            |                                           |                                             |                    |
                            | #ECBA57                                   |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor #ECBA57                           |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor #ECBA57 to get                    |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor=#ECBA57                           |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor=#ECBA57 to get                    |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            |                                           |                                             |                    |
                            | "#ECBA57                                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | "#ECBA57"                                 |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor "#ECBA57                          |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor "#ECBA57"                         |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor "#ECBA57  to get                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor "#ECBA57" to get                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor="#ECBA57                          |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor="#ECBA57"                         |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor="#ECBA57  to get                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor="#ECBA57" to get                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            |                                           |                                             |                    |
                            | (#ECBA57                                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | (#ECBA57)                                 |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor (#ECBA57                          |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor (#ECBA57)                         |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor (#ECBA57  to get                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor (#ECBA57) to get                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor=(#ECBA57                          |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor=(#ECBA57)                         |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor=(#ECBA57  to get                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor=(#ECBA57) to get                  |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            |                                           |                                             |                    |
                            | fgColor #ECBA57;                          |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor=#ECBA57;                          |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            |                                           |                                             |                    |
                            | fgColor #ECBA57.                          |                Coloring   OK                |    Coloring   OK   |
                            |                                           |                                             |                    |
                            | fgColor=#ECBA57.                          |                Coloring   OK                |    Coloring   OK   |
                            •-------------------------------------------•---------------------------------------------•--------------------•
                        
                        • Affect the HTML language ( Language > H > HTML ) to this text

                        => You should see, at once, the coloring of the lines, in the first column

                        To all : an important point to note is that if you double-click on any hexadecimal numùber or within the zones rgb, rgba, hsl or hsla , it opens the Color Palette, as expected. Just test it ;-))

                        Howener, @michael-vincent, you can see that, for few lines, the coloring is not trigerred, although the double-click works nicely !

                        So, could you consider these small issues, specifically the three cases "ECBA57", fgColor "ECBA57" and fgColor "ECBA57" to get ?

                        As usual, @michael-vincent, there’s no obligation to do so. Just do as you please !

                        Best Regards,

                        guy038

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