in reply to Align given substring(s) in lines
As to your example, note perltidy does this too, though of course it only works on Perl and does a whole lot more as well.
$ cat example.pl my $string = 'some value'; # these my $int = 12; # are my $float = 1.2; # scalars $ perltidy -b example.pl $ cat example.pl my $string = 'some value'; # these my $int = 12; # are my $float = 1.2; # scalars
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Align given substring(s) in lines
by johnaj (Sexton) on Apr 28, 2021 at 20:06 UTC | |
by haukex (Archbishop) on Apr 28, 2021 at 21:38 UTC |