#SEE PURPOSE AT THE END OF THE FILE
package PerlCommentsExctractor ;
use Tie::File ;
our $codeFile = $ARGV[0] ;
main();
sub main
{
my @file_array = ();
tie @file_array , 'Tie::File', $codeFile , memory => 100_000_000 or die "I cannot find the $codeFile" ;
my $line = ();
foreach (@file_array) #foreach line of the file
{ $line ++ ;
if ($_ =~m/(.*)#(.*)/)
{ print $2 . " at $codeFile line $line \n";
}
}
print "F8 copypaste regex \n" ;
print "^(.+)at (.+) line ([0-9]+)[.,]?\n" ;
print "substitute with \1\n" ;
untie @file_array ;
}
1 ;
__END__
#IDEA PUT THIS SCRIPT INTO YOUR PATH CONFIGURE TEXTPAD WITH THE FOLLOWING SETTINS
#==============================================COPYPASTEREGFILE START
#[HKEY_CURRENT_USER\Software\Helios\TextPad 4\Tools\12]
#"Properties"=hex:01,00,00,00,62,80,00,00,68,49,00,00
#"MenuText"="PerlCommentsExctractor.exe"
#"Command"="cmd.exe"
#"Parameters"="PerlCommentsExctractor.exe $FileName"
#"Folder"="$FileDir "
#"RE"="^.+at (.+) line ([0-9]+)[.,]?"
#==============================================COPYPASTEREGFILE STOP
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 week ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!