dp.SyntaxHighlighter.ClipboardSwf = '{$this->component_path}script/clipboard.swf';
dp.SyntaxHighlighter.HighlightAll('code');
dpScript;
Context::addHtmlFooter($js_code);
}
Context::addCSSFile($this->component_path.'css/SyntaxHighlighter.css');
Context::addJsFile($this->component_path.'script/shCore.js');
Context::addJsFile($this->component_path.'script/shBrush'.$code_type.'.js');
$output = null;
if(isset($option_file_path) || isset($option_description)) {
$output .= '';
if(isset($option_file_path)) $output .= ''.$option_file_path.'';
if(isset($option_description)) $output .= ''.$option_description.'';
$output .= '
';
}
$output .= sprintf('%s
', $code_type.$option, $body);
return $output;
}
}
?>