PHP,
I have this code:
function highlight_code ($langName, $codeText)
{
$langName = strtolower($langName);
require_once
XOOPS_ROOT_PATH."/colorcode/HColor_Core.php";
if ($langName == 'php'){
return highlight_string("<?$codeText?".">", TRUE);
}else{
$HColor = new HColorCore;
return $HColor->HighlightColor($langName,$codeText);
}
}
That will be ran to highlight the PHP syntax in a forum post.
Everything works fine if there are no double quotes in the form post but
if there are double quotes in the post, I get improper markup of the PHP
code being posted in the forum post. Can someone help me out? Thanks,
Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone: (970) 535-4795
Metro: (303) 926-0559
Fax: (970) 535-0780
Metro Fax: (303) 926-0559
http://www.starprecision.com