Finished most of the [code] tag. Everytime I tested it by posting here, the site sent an email to me….I hope my email box won’t be full when i get home…It’s not perfect yet. It still needs some work so html and not only php segments are highlighted and it “cheats” a bit for now, but I got the basics to work and this time without any blood flowing and that’s all that counts.















…
Testing…
http://www.randomoutburst.com/shade/
1 2 3 4 5 6 7 8 9 10 11 12function RandomChars($number) { list($usec, $sec) = explode(’ ‘, microtime()); $sdnum = (float) $sec + ((float) $usec * 100000); mt_srand($sdnum); while (strlen($ret) < $number) { $letter = chr( mt_rand(48, 123) ); if (preg_match(”/w/”, $letter) && $letter != “_”) $ret .= $letter; } return $ret; }http://magnablog.0xtc.com/
This will determine my next comment.
-Shade
…
Well fawk me like a donkey…
IT WORKS!
I dunno what you did sir, but I tip my hat to you.
-Shade
…
I don’t know what the first post says but I’m laughing my ass off at the second one.
…
It’s just some php code, wendy =)
btw, If you had added the PHP begin and end tags, it would have even been in color, like so:
1 2 3 4 5 6 7 8 9 10 11 12 13 14…
update: PHP open/close tags are optional when using the [PHP] tag. They are added if missing. Next on to-do list: auto-parse inline php code.