Style Token text coloring issue
-
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:
Can you please fix it?
Thanks
Tomas -
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:
@PeterJones FAQ this one?
-
Which version of Notepad++ do you use? In your screenshot I only see the two “style token” menu items:
Style token
Remove stylebut 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 -
@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 recentcontextMenu.xml
on github. -
@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. -
@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). -
@Alan-Kilborn said in Style Token text coloring issue:
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:
@PeterJones FAQ this one?
Thanks, this helped :-)