Plugin Samples

The following are a few samples to demonstrate how easy it is to develop new plugins for gPHPEdit.

Convert to Uppercase

A simple Perl script that replaces the current selection with it's uppercase equivalent

#!/usr/bin/perl

if ($ARGV[0] eq "-type") {
print "SELECTION";
exit(0);
}

print "REPLACE\n".uc($ARGV[0]);

Open selected filename

Although it's redundant (Ctrl+Return does this already) this is a simple example that opens a file with the name of the current selection.

#!/usr/bin/perl

if ($ARGV[0] eq "-type") {
print "SELECTION";
exit(0);
}

print "OPEN\n".$ARGV[0];