Conversation
because isQualifiedWord use hardcode and no SCI_GETWORDCHARS smarthighlight is not always OK. This Fix use SCI_GETWORDCHARS.
|
hi, In smarthighlight the punctuationChar and WhiteSpaceChar are hardcode don't use SCI_GETxxxxxCHARS function) and forgets grave accent. It is also possible to change the lists with setWordChars, setPunctuationChars or setWhiteChars (with Python script plugins for example) This Fix #187 use scintilla function in smarthighlight function. Cyrillev91 |
|
@Cyrillev91 It's interesting your modification, but I don't see any change and advantage for an end-user. Care to elaborate it? |
|
@Cyrillev91 Now that this has been merged into v6.8.4., how can I get the smart highlighting to work like in the last column of your test? Right now, the smart highlighting is still working like it always has, and if I select END-OF-FILE then it doesn't highlight other instances of END-OF-FILE. |
|
@Eldaw Hi,
def extendWordChar(args):
word_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$-"
for i in range(128,256):
word_chars += chr(i)
editor.setWordChars(word_chars)
notepad.callback(extendWordChar, [NOTIFICATION.BUFFERACTIVATED, NOTIFICATION.READY])
@donho thank you for adding my fix. |
There was a problem hiding this comment.
String returned by SCI_GETWORDCHARS from scintilla is not null terminated, so check for strlen in isWordChar() below on listChar is dangerous
- seen with MS Application Verifier on x64
|
I agree with you |


Hi,
With notepad++ it is possible to select the entire word when double click on word, all words selected are highlight (smart Highlight).
But code to select word by double click is not the same as smart highlight feature.
My commit Fix smarthighlight.
more explain :
http://sourceforge.net/p/notepad-plus/patches/652/
Cyrillev