DblClick Word Selection

SyntaxEditor for Windows Forms Forum

Posted 19 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 19 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 8 years ago by gareth
Avatar

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

[Modified 8 years ago]

Posted 8 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 8 years ago by gareth
Avatar

Ah excellent, thank you.

The latest build of this product (v24.1.0) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.