Double-click selection of variable names in Perl

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
vdawg
Posts: 19
Joined: Sun Oct 31, 2021 7:32 pm

Double-click selection of variable names in Perl

Post by vdawg »

In Perl a variable can begin with $, %, or @. If I double-click to select a variable name, it will include the "$" of "$myvar", but it won't get the "@" of "@myarray" or the "%" of "%myhash".
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

You can change this as follows:
  1. Click Configure > Preferences
  2. Expand Document Classes
  3. Expand Default
  4. Click Syntax
  5. In Other characters in words, enter: @%
If you want to restrict this behaviour to just Perl files, you can create a new document class for them.
vdawg
Posts: 19
Joined: Sun Oct 31, 2021 7:32 pm

Post by vdawg »

Thanks -- I'll give it a try.
Post Reply