Thread Tags finden (21 answers)
Opened by Froschpopo at 2008-04-13 18:34

moritz
 2008-04-16 13:08
#108448 #108448
User since
2007-05-11
923 Artikel
HausmeisterIn
[Homepage]
user image
Ich will sowas:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
sub syntax_hilight {
    my $text = shift;
    # mache hier das syntaxhilighting
    return $html_with_markup;
}
$bbcode->add_tag('perl', \&syntax_hilight);

sub frob_uri {
    my $url = shift;
    if ($url =~ m/evil_competitor/){
        return $url . '?ref_id=1234';
     }
     return $url;
}

$bbcode->add_callback_for('url', \&frob_uri);

View full thread Tags finden