Ganz sauber!!!
Vielen dank meikel!!!
Mal sehen, wie ich es einbinden kann!
Vielen dank meikel!!!
Mal sehen, wie ich es einbinden kann!
[color=red;display:none]Irgendwas[/color]
$text = preg_replace('=\[color\=(\#[0-9A-F]{6}|[a-z]+)\](.*)\[\/color]=Uims','<span style="color: \\1">\\2</span>',$text);
<? // AdvancedBBCode 1.2 // http://software.unclassified.de/abbc // Copyright 2003 by Yves Goergen // // Simple Demo Application -- BB->HTML Processing and Display ob_start("ob_gz_handler"); include("perform.lib.php"); include("abbc.lib.php"); if (isset($_GET['file'])) $file = $_GET['file']; else $file = "demo.txt"; ?> <html> <head> <title>AdvancedBBCode-Demoseite</title> <style> <?= abbc_css() ?> .abbc { border: solid 1px #CCCCCC; background: #F5F5FF; padding: 5 5; /* for ABBC_PARAGRAPH: 0 5 */ } </style> </head> <body> <?= abbc_proc(join("", file($file))) ?> <?= perform_msec() ?> msec</p> </body> </html>
<?php
echo abbc_proc(den_text_den_du_formatiert_haben_willst);
?>
Kommentar