Re: test |
Thu, 15 July 2004 21:07 |
|
<?php
class my_highlight_string
{ function my_highlight_string ($html='#0000ff',
$default='#0000BB',
$keyword='#000080',
$string='#b60033',
$comment='#008000',
$tag_open_close='#ffffcc'
) //constructor
{ echo "<style>\n";
echo ".source span.html { color: $html; }\n";
echo ".source span.default { color: $default; }\n";
echo ".source span.keyword { color: $keyword; font-weight: bold;}\n";
echo ".source span.string { color: $string; }\n";
echo ".source span.comment { color: $comment; font-style: italic; }\n";
echo ".source span.tag_open_close { color: $default; background-color: $tag_open_close; }\n";
echo "</style>\n"; }
function PrintCode ($code)
{ echo '<pre class="source">';
$source = highlight_file($code, TRUE);
// search style.
$search[0] = '<font color="'.ini_get('highlight.html').'">';
$search[1] = '<font color="'.ini_get('highlight.default').'">';
$search[2] = '<font color="'.ini_get('highlight.keyword').'">';
$search[3] = '<font color="'.ini_get('highlight.string').'">';
$search[4] = '<font color="'.ini_get('highlight.comment').'">';
$search[5] = '</font>';
$search[6] = '<br />';
$search[7] = '\r';
$search[8] = ' ';
$search[9] = '<?';
$search[10] = '?>';
// replace style.
$replace[0] = '<span class="html">';
$replace[1] = '<span class="default">';
$replace[2] = '<span class="keyword">';
$replace[3] = '<span class="string">';
$replace[4] = '<span class="comment">';
$replace[5] = '</span>';
$replace[6] = "\n";
$replace[7] = '';
$replace[8] = ' ';
$replace[9] = '<span class="tag_open_close"><?</span>';
$replace[10] = '<span class="tag_open_close">?></span>';
echo str_replace($search, $replace, $source);
echo '</pre>';
}
} ;
?>
|
|
Re: test |
Fri, 16 July 2004 12:59 |
|
No Message Body
|
|
Re: test |
Fri, 16 July 2004 22:31 |
|
Helle Hello Hy
|
|
Re: test |
Sat, 17 July 2004 09:29 |
|
2 test or not 2 test
|
|
Re: test |
Thu, 22 July 2004 12:04 |
|
No Message Body
-
Attachment: pensile.jpg
(Size: 75.47KB, Downloaded 1565 times)
|
|
Re: test |
Thu, 22 July 2004 14:02 |
|
No Message Body
-
Attachment: A.jpg
(Size: 44.34KB, Downloaded 1801 times)
-
Attachment: C.jpg
(Size: 41.89KB, Downloaded 1758 times)
-
Attachment: M.jpg
(Size: 45.89KB, Downloaded 1825 times)
-
Attachment: R.jpg
(Size: 43.84KB, Downloaded 1718 times)
-
Attachment: V.jpg
(Size: 41.70KB, Downloaded 1758 times)
|
|
Re: test |
Fri, 23 July 2004 09:43 |
|
No Message Body
-
Attachment: bicolor.jpg
(Size: 47.42KB, Downloaded 1769 times)
|
|
Re: test |
Mon, 26 July 2004 08:14 |
|
No Message Body
|
|
Re: test |
Mon, 26 July 2004 09:52 |
|
No Message Body
-
Attachment: siren.jpg
(Size: 21.51KB, Downloaded 2590 times)
|
|
Re: test |
Tue, 27 July 2004 08:12 |
|
No Message Body
-
Attachment: sirena.jpg
(Size: 29.33KB, Downloaded 2359 times)
|
|
Re: test |
Tue, 07 September 2004 13:06 |
|
No Message Body
-
Attachment: parquet.jpg
(Size: 15.74KB, Downloaded 2028 times)
|
|
Re: test |
Fri, 10 September 2004 12:55 |
|
YEAH, TEST
|
|
Re: test |
Tue, 14 September 2004 02:02 |
|
heyheyheyWOW THIS IS COOL IS IT?!?!
|
|
Re: test |
Fri, 24 September 2004 09:11 |
|
No Message Body
|
|
|
Re: test |
Mon, 18 October 2004 21:06 |
|
Anonymous wrote on Tue, 07 September 2004 09:06 |
|
|
|
Re: test |
Mon, 18 October 2004 21:07 |
|
fffffffffffAnonymous wrote on Fri, 04 June 2004 11:08 |
|
|
|
Re: test |
Tue, 19 October 2004 14:33 |
|
No Message Body
-
Attachment: A1.JPG
(Size: 22.10KB, Downloaded 1476 times)
|
|
Re: test |
Tue, 19 October 2004 14:33 |
|
No Message Body
-
Attachment: A3.JPG
(Size: 20.55KB, Downloaded 1470 times)
|
|
Re: test |
Tue, 19 October 2004 14:34 |
|
No Message Body
-
Attachment: A4.JPG
(Size: 14.06KB, Downloaded 1414 times)
|
|
Re: test |
Tue, 19 October 2004 14:34 |
|
No Message Body
-
Attachment: A5.JPG
(Size: 13.24KB, Downloaded 1552 times)
|
|
Re: test |
Wed, 20 October 2004 11:26 |
|
No Message Body
|
|
Re: test |
Wed, 20 October 2004 11:28 |
|
No Message Body
-
Attachment: mobile.jpg
(Size: 20.79KB, Downloaded 2400 times)
|
|
Re: test |
Fri, 22 October 2004 12:58 |
|
No Message Body
|
|
Re: test |
Fri, 22 October 2004 13:10 |
|
No Message Body
|
|
Re: test |
Fri, 22 October 2004 13:17 |
|
No Message Body
-
Attachment: foto2.JPG
(Size: 12.89KB, Downloaded 1749 times)
|
|
Re: test |
Tue, 26 October 2004 09:35 |
|
No Message Body
-
Attachment: Immagine.gif
(Size: 4.11KB, Downloaded 1772 times)
|
|
Re: test |
Tue, 26 October 2004 09:42 |
|
No Message Body
-
Attachment: Immagine.gif
(Size: 4.11KB, Downloaded 1379 times)
|
|
Re: test |
Tue, 09 November 2004 09:18 |
|
No Message Body
|
|
Re: test |
Tue, 09 November 2004 14:25 |
|
No Message Body
-
Attachment: avatar1.jpg
(Size: 23.28KB, Downloaded 1627 times)
|
|
Re: test |
Thu, 11 November 2004 09:10 |
|
No Message Body
|
|
Re: test |
Fri, 12 November 2004 08:49 |
|
No Message Body
-
Attachment: DSC_0421.JPG
(Size: 21.88KB, Downloaded 1524 times)
-
Attachment: DSC_0425.JPG
(Size: 19.39KB, Downloaded 1412 times)
-
Attachment: DSC_0426.JPG
(Size: 18.21KB, Downloaded 1514 times)
|
|
Re: test |
Wed, 24 November 2004 15:33 |
|
No Message Body
|
|
Re: test |
Wed, 24 November 2004 17:00 |
|
No Message Body
|
|
Re: test |
Thu, 25 November 2004 11:31 |
|
No Message Body
-
Attachment: carrello.jpg
(Size: 8.55KB, Downloaded 1582 times)
|
|
Re: test |
Thu, 25 November 2004 17:14 |
|
No Message Body
-
Attachment: TESSERA.jpg
(Size: 23.67KB, Downloaded 2111 times)
|
|
Re: test |
Fri, 26 November 2004 16:45 |
|
No Message Body
-
Attachment: konami.jpg
(Size: 6.21KB, Downloaded 1835 times)
|
|
Re: test |
Fri, 03 December 2004 09:56 |
|
No Message Body
|
|
Re: test |
Mon, 13 December 2004 11:01 |
|
No Message Body
-
Attachment: Flute.jpg
(Size: 9.12KB, Downloaded 3516 times)
|
|
Re: test |
Mon, 13 December 2004 15:34 |
|
No Message Body
-
Attachment: baga5.jpg
(Size: 13.95KB, Downloaded 1260 times)
|
|