Normally when I double-click a word in Textpad it won't select the trailing hyphen (unless it's a keyword defined in syntax highlighting), but today that behaviour changed for some reason.
For example, if the text is "$obj->property" and I double-click on "obj", I want it to only highlight "obj" but it's now highlighting "obj-".
This is only happening in some document classes and not in others. I haven't changed any of my syntax files recently so I have no idea why it just started acting like this today. Is it possible that a Windows update would affect that behaviour?
Double clicking a word selects the trailing hyphens
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
-
ben_josephs
- Posts: 2464
- Joined: Sun Mar 02, 2003 9:22 pm
Look in the syntax files for the document classes in which this is happening. Do they have any keywords that contain hyphens?
From the help, under How To... | Customize Settings | Syntax Highlighting:
From the help, under How To... | Customize Settings | Syntax Highlighting:
When selecting and stepping over words, the default set of characters in a word are letters, numbers and those used in keywords in the syntax definition file. If you need to include any others, such as a hyphen, type them in the box labelled "Other characters in words".