https://www.icyphoenix.com/viewtopic.php?f=28&t=4740&p=32319#p32319 ----------------------------------- glenflet Sat 27 Sep, 2008 05:13 Re: PHP Based Code To HTML With BBcode ----------------------------------- Ok I've got every thing working now, thanks for the help. [b][size=14]How to Install this BBcode[/size][/b] EXTRACT [b]phpcode2html.zip[/b] to [b]includes/phpcode2html/[/b] COPY [b]code.css[/b] to [b]templates/mg_themes/[/b] OPEN [b]includes/BBcode.php[/b] FIND [codeblock]global $db, $board_config, $phpbb_root_path, $phpEx, $lang;[/codeblock] ADD AFTER [codeblock]include($phpbb_root_path . 'includes/phpcode2html/phpcode2html.'. $phpEx);[/codeblock] FIND [codeblock] $html_search = array('', ' ', '> <'); $xhtml_replace = array('n", " n
  • ",$html); $html = "
  • " . $html; }[/codeblock] FIND [codeblock] if ($item['params']['syntax'] == 'php') { $html = strtr($text, array_flip(get_html_translation_table(HTML_ENTITIES))); $html = highlight_string($html, true); $html_search = array('', '', '', ' '); $xhtml_replace = array('', '', '