3 if(/\[CALLPERL .*left\]/ ... /\[CALLPERL end\]/) {
4 $code .= $_ if(!/CALLPERL/);
5 $name = $1 if(/.swf.*name=([^&][^ ]*)/);
6 $name = $1 if(/.swf.*name="([^&]*)"/);
8 elsif(/\[CALLPERL .*right\]/ ... /\[CALLPERL end\]/) {
9 $highlight .= $_ if(!/CALLPERL/);
12 $code =~ s/"/"/g;
13 open(fi, ">tmp.sc");print fi $code;close(fi);
14 system("swfc tmp.sc");
15 ($embed = `swfdump -e $name`) =~ /WIDTH="([^"]*)"/;
17 print "<td bgcolor=\"#ffffff\" width=\"$width\">";
24 elsif ($highlight ne "") {
25 $highlight =~ s/^\n\s*//g;
26 $highlight =~ s/\s*\n$//g;
28 # todo: apply syntax highlighting.
29 print $highlight."\n";