Page 1 of 1
Double-click selection of variable names in Perl
Posted: Thu Nov 11, 2021 4:10 am
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".
Posted: Thu Nov 11, 2021 6:12 am
by ak47wong
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.
Posted: Thu Nov 11, 2021 6:26 am
by vdawg
Thanks -- I'll give it a try.