I am trying to get word on cursor , and i found GetWordAtRowCol() and WordAtCursor
But when i try string such like "W1.2" or "A@B" , the result will be "W1" and "A"
Could anyone tell me how to get the whole word?
WordAtCursor uses period and At-sign as word boundaries, unless there is a activated Highlighter that specifies otherwise (see line 10390 in SynEdit.pas)
GetWordAtRowCol only looks for the first non-identChars, which are all non-printable characters by default, or Space, numbers and letters when a highlighter is specified (see line 10360 in SynEdit.Pas)
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.