Community
    • Login

    Style Token text coloring issue

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    7 Posts 4 Posters 654 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.
    • Tomáš KocourekT
      Tomáš Kocourek
      last edited by

      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

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Tomáš Kocourek
        last edited by

        @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?

        Tomáš KocourekT 1 Reply Last reply Reply Quote 1
        • Bas de ReuverB
          Bas de Reuver
          last edited by

          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

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Bas de Reuver
            last edited by

            @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.

            Bas de ReuverB 1 Reply Last reply Reply Quote 1
            • Bas de ReuverB
              Bas de Reuver @PeterJones
              last edited by Bas de Reuver

              @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.

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @Bas de Reuver
                last edited by PeterJones

                @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
                • Tomáš KocourekT
                  Tomáš Kocourek @Alan Kilborn
                  last edited by

                  @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
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors