General questions about using TextPad
Moderators: AmigoJack , bbadmin , helios , Bob Hansen , MudGuard
vdawg
Posts: 19 Joined: Sun Oct 31, 2021 7:32 pm
Post
by vdawg » Thu Nov 11, 2021 4:10 am
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 » Thu Nov 11, 2021 6:12 am
You can change this as follows:
Click Configure > Preferences
Expand Document Classes
Expand Default
Click Syntax
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 » Thu Nov 11, 2021 6:26 am
Thanks -- I'll give it a try.