This project is read-only.

Double-Click selection of a word

Nov 24, 2012 at 10:00 PM

Is it possible to change the way how you can select a word using a double-click?

I don't want to select the whole word "test_word". I want to separate the selection by the underline and select only "test" or "word" according to where I clicked.

Nov 24, 2012 at 10:03 PM
Edited Nov 24, 2012 at 10:13 PM

It all depends on where the selection actually occurs, if it's done in ScintillaNET, or in some place that ScintillaNET has the ability to control, then yes, it is possible. I'm looking for where that occurs now. (will update this post when I find it)


After a bit of looking, it appears you simply need to change the word characters for the current style to not include the underscore character. (aka, a-z, A-Z, and 0-9 only)

Nov 24, 2012 at 10:19 PM

Thanks for the quick reply. Works great :)

Dec 18, 2012 at 9:49 AM

Where to define the style,

Whether the style to be defined for "WORD" or "CHARACTER" ?