Highlighting other occurences of currently selected word ignores occurences followed by ";"...
-
-
this functionality searches for the whole word only and
I assume the language you use treats the semicolon as a char which might be part
of a word, could this be?Cheers
Claudia -
Hi Claudia,
the problem even occurs if you just try it with an empty new document in Notepad++. So it is irrespective of the programming language used. But it does particularly occur with c(++) files, where I guess “;” should not be considered part of a word?
Is there any way to tell Notepad++ that “;” should not be considered part of a word?
Thanks,
Linus -
-
Hi, @linus-f,
I don’t understand ! I did a try, with a new tab and language = C++
I inserted the text below, where the first line is the simple string test, only :
test test !test! "test" #test# $test$ %test% &test& 'test' (test( )test) *test* +test+ ,test, -test- .test. /test/ 0test0 :test: ;test; <test< =test= >test> ?test? @test@ [test[ \test\ ]test] ^test^ _test_ `test` {test{ |test| }test} ~test~
And I confirm that all the occurrences, of the string test, are highlighted in green, except for the two :
0test0 _test_
Logic, because, for these two lines, the string test is part of the words 0test0 and test !
You should verify which options are set/unset in Settings > Preferences… > Highlighting > Smart Highlighting. With the default options, that I’m using, only the options Enable and Match whole word only are checked !
If you cannot see any problem in your settings, may be an installed plugin could disturb the default N++ behaviour !
Best Regards,
guy038
-