DblClick Word Selection

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by painetraine
Avatar
When I double click a piece of text in the editor, such as

@myvariable

Only the "myvariable" portion of the item is selected. Is there any way to have it selected the entire "@myvariable" so that it works like most other editors?

Thanks

Comments (4)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
That has to do with the word end-finding routines. We have on our TODO list to add a way where you can customize them for a language if you want them different from the defaults since in SQL, you'd want to do allow @ to be part of the start of a word. So right now there isn't a way to change them but we do want to add it.


Actipro Software Support

Posted 4 years ago by gareth
Avatar

Hi, was this functionality ever implemented in your WPF syntax editor?

[Modified 4 years ago]

Posted 4 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Yes, you can change that sort of thing with an IWordBreakFinder implementation.  The default implementation is DefaultWordBreakFinder.  Any custom implementation instance can be returned by a MergableSyntaxLanguage.WordBreakFinder property override.


Actipro Software Support

Posted 4 years ago by gareth
Avatar

Ah excellent, thank you.

The latest build of this product (v2018.1 build 0342) was released 10 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.