Crew algemeen |
|
Shit hé, krijg het bij mij echt niet werkend
Die code van jou werkt perfect, maar zo gauw ik het er bij mij ingooi werkt het niet meer
Zal wel iets simpels over het hoofd zien of zo?
function backupCode($sLang, $sCode)
{
$oGeshi =& new GeSHi(str_replace('\"', '"', $sCode), $sLang);
$oGeshi->set_header_type(GESHI_HEADER_DIV);
$oGeshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
//$oGeshi->set_link_styles(GESHI_LINK, "geshiHover");
$iBlock = count($this->aCodes);
$this->aCodes[$iBlock] = $oGeshi->parse_code();
return '[code]'.$iBlock.'
function backupCode($sLang, $sCode) { $oGeshi =& new GeSHi (str_replace('\"', '"', $sCode), $sLang); $oGeshi->set_header_type(GESHI_HEADER_DIV); $oGeshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS); //$oGeshi->set_link_styles(GESHI_LINK, "geshiHover"); $iBlock = count($this->aCodes); $this->aCodes[$iBlock] = $oGeshi->parse_code(); return '[code]'.$iBlock.'
';
}
function restoreCode($iBlock)
{
return '<div class="main"><div class="code_container">'.str_replace(array(" code", " /code"), array("code", "/code"), $this->aCodes[$iBlock]).'</div></div>';
}[/code]
div.main
{
height: 300px;
width: 400px;
border: thin solid #000000;
}
div.code_container
{
border: 1px solid #00FF00;
height: 200px;
width: 95%;
overflow: auto;
position: relative;
}
div.main { height: 300px; width: 400px; border: thin solid #000000; } div.code_container { border: 1px solid #00FF00; height: 200px; width: 95%; overflow: auto; position: relative; }
Zie hier het resultaat:
http://86.80.53.250/jw2/
:s |