• Login
Community
  • Login

Style Token text coloring issue

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
7 Posts 4 Posters 656 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.
  • T
    Tomáš Kocourek
    last edited by Oct 31, 2021, 7:58 AM

    Hello,

    In previous versions it was possible to select whatever part of text and it colored it in whole file. But for some time I see it doesn’t work anymore.

    For instance, if I select this part of text as the Style Token and set color to it, nothing happens:

    f5e9c28d-55e3-405d-8765-b4a23b4bac97-image.png

    Can you please fix it?

    Thanks
    Tomas

    A 1 Reply Last reply Oct 31, 2021, 11:37 AM Reply Quote 0
    • A
      Alan Kilborn @Tomáš Kocourek
      last edited by Oct 31, 2021, 11:37 AM

      @Tomáš-Kocourek

      It works.
      Read the release note and/or the manual when you move to a newer version of Notepad++ than the one you are used to, because…THINGS CHANGE.

      Here’s a hint, though:

      ea328cac-7dee-48f7-ad83-1460c38446f9-image.png

      @PeterJones FAQ this one?

      T 1 Reply Last reply Nov 2, 2021, 11:34 AM Reply Quote 1
      • B
        Bas de Reuver
        last edited by Oct 31, 2021, 9:09 PM

        Which version of Notepad++ do you use? In your screenshot I only see the two “style token” menu items:

        Style token
        Remove style

        but when I right-click in a file, I see three menu items for the “style” part of the pop-up menu (btw I have Notepad++ v8.1.9)

        Style all occurrences of token
        Style one token
        Remove style

        P 1 Reply Last reply Oct 31, 2021, 9:29 PM Reply Quote 0
        • P
          PeterJones @Bas de Reuver
          last edited by Oct 31, 2021, 9:29 PM

          @Bas-de-Reuver said in Style Token text coloring issue:

          Which version of Notepad++ do you use? In your screenshot I only see the two “style token” menu items:
          but when I right-click in a file, I see three menu items for the “style” part of the pop-up menu (btw I have Notepad++ v8.1.9)

          It’s actually more complicated than “which version”, because if you started with a version before “style all” vs “style one” (specifically, before v8.0) then upgraded, your right-click context menu will not have upgraded, because Notepad++ installer/upgrader does not change config files that already exist in %AppData%\Notepad++, so it’s possible to have v8.1.9 without seeing the updated right-click menu.

          If you are in that mismatch situation, You can always download the portable zipfile of the same version as you have, and compare the contextMenu.xml from your installed copy to that from the portable, to see if there are any new commands available. Or, instead of that, you can look at the most recent contextMenu.xml on github .

          B 1 Reply Last reply Oct 31, 2021, 9:35 PM Reply Quote 1
          • B
            Bas de Reuver @PeterJones
            last edited by Bas de Reuver Oct 31, 2021, 9:36 PM Oct 31, 2021, 9:35 PM

            @PeterJones ah ok, good point. Btw you could also just delete the %AppData%\Notepad++\contextMenu.xml file, and the next time Notepad++ starts it will just be re-downloaded automatically.

            P 1 Reply Last reply Oct 31, 2021, 9:39 PM Reply Quote 0
            • P
              PeterJones @Bas de Reuver
              last edited by PeterJones Oct 31, 2021, 9:40 PM Oct 31, 2021, 9:39 PM

              @Bas-de-Reuver said in Style Token text coloring issue:

              @PeterJones ah ok, good point. Btw you could also just delete the %AppData%\Notepad++\contextMenu.xml file, and the next time Notepad++ starts it will just be re-downloaded automatically.

              Well, you could, if you hadn’t customized your right-click menu at all in your decade or more of using Notepad++. Since I have, I wouldn’t consider such a drastic solution. ;-)

              it will just be re-downloaded automatically.

              Technically, it would be re-created from the default settings in the executable; it doesn’t require an internet connection to re-create the default contextMenu.xml (or any other missing config file).

              1 Reply Last reply Reply Quote 1
              • T
                Tomáš Kocourek @Alan Kilborn
                last edited by Nov 2, 2021, 11:34 AM

                @Alan-Kilborn said in Style Token text coloring issue:

                @Tomáš-Kocourek

                It works.
                Read the release note and/or the manual when you move to a newer version of Notepad++ than the one you are used to, because…THINGS CHANGE.

                Here’s a hint, though:

                ea328cac-7dee-48f7-ad83-1460c38446f9-image.png

                @PeterJones FAQ this one?

                Thanks, this helped :-)

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