Page 1 of 1

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

Posted: Fri Oct 17, 2003 3:17 pm
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

Posted: Fri Oct 17, 2003 4:14 pm
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]+

Posted: Fri Oct 17, 2003 4:39 pm
by millerlr
Thank you, Stephen.