Leser: 1
8 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
for my $file (@search_files) {
my $next_file = 0;
open(SF, "<", "../templates/$file")
or die("Cant open Template to search in: $!");
while (my $line = <SF>) {
my @keywords = split (/ /, $keyword);
for my $word (@keywords) {
if ($line =~ /$word/i) {
push(@matches, $file);
$next_file = 1;
last;
}
}
last if $next_file;
}
close SF;
}
return @matches;
}
<meta name="description" content="Kinder- und Jugendtheater Murkelbühne eV, " />
<meta name="description" content="Kinder- und Jugend<span style="color:red;">theater</span> Murkelbühne eV, " />
<!-- TMPL_INCLUDE_VAR NAME="content" -->
1
2
3
4
5
6
7
8
9
10
11
12
13
14
my @highlight = split (/ /, $searched) if $searched;
my @colors = ('#C7FEE7');
my $hl = new HTML::Highlight (
words => [@highlight],
wildcards => [],
colors => [@colors],
czech_language => 0,
debug => 0
);
$output = $hl->highlight($output);
return $output;
$output =~ s#>(.*)($_)(\W)?(.*)<#$1<span style=\"color: red;\">$1$2$3$4</span>#gi;
8 Einträge, 1 Seite |