Word selection doesn't include ":" char (and other

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
millerlr
Posts: 10
Joined: Fri Oct 17, 2003 2:58 pm

Word selection doesn't include ":" char (and other

Post by millerlr »

I program in AutoLISP and find myself using a combination of their VLIDE and TextPad 4.7.0.

I recently tried to make my global variable names stand out by adding suffix of ":GL". However, in TextPad, when I try to double-click select that name -- say Wilderness:GL -- it only selects "Wilderness" or "GL". It seems to treat the ":" character as a delimiter. In my VLIDE editor Wilderness:GL is selected with a double-click.

Not a major except when it comes to a replace operation. The instant that your search word contains a ":" character, the Match Whole Words option is nulled out. This can make a large replace operation a risky venture.

Is there some setting where I can embed such characters in a word and have Textpad think it's a whole word?

Len Miller
User avatar
helios
Posts: 711
Joined: Sun Mar 02, 2003 5:52 pm
Location: Helios Software Solutions
Contact:

Post by helios »

In order to select "Wilderness:GL", when you double click it, you will need to implement the following procedure in TextPad:

From the Configure menu choose:

1. Preferences
2. "+" sign next to Document classes
3. "+" sign next to the specific document class
4. Syntax
5. Add ":" without the quotes to "Other characters in words"
6. Click Apply / OK.

This doesn't effect the Find Or Replace dialog boxes, but you can always use a regular expression such as:

Wilderness:[a-zA-Z]+
Helios Software Solutions
millerlr
Posts: 10
Joined: Fri Oct 17, 2003 2:58 pm

Post by millerlr »

Thank you, Stephen.
Post Reply