Sublime Forum

Highlight all matched words of selected text when text begins with a hyphen (without key presses)

#1

I’m sorry for my naivety, but I have searched and searched.

It mostly works. That is, when I select a word, it will highlight all the other matching words. However, when the word starts with a hyphen (a dash) like a variable in CSS, e.g. --theme-highlight-green: #86DE74;
I can select the variable, but ST does not hilight any of the other “–theme-highlight-green” variables?

I have changed word_separators and removed the “-” but it does not help when a word starts with a hyphen.

"word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}~?",`

Linux 6.0.15-1-MANJARO
Sublime Text Build 4143

Its prob been answered many times but i cant find what im looking for, sorry.

0 Likes