2 Jul 27, 2007 22:08
You want your readers to view the code but not execute it, am I right? You should try a plugin called [url=http://www.crammerz-inc.net/blogs/thunk/2007/05/26/b2evolution_code_highlighter_plugin]Genshi[/url] or the one called [url=http://b2evo.astonishme.co.uk/index.php?p=32]Display Code Plugin[/url] or [url=http://www.blog.cingusoft.com/index.php/all/2006/11/25/cgeshi_highlight_code_with_geshi]CGeshi[/url]. Just pick the one that suits your needs.
In the file ../blog/conf/formatting.php you find on line 48:
$use_security_checker = 0;
If it is set to 1 no code will be allowed (see also the XHTML checker and the comments in the file).
If you want to execute it, you'd be better of packing it in a .js file and call it from the _main.php. Use Google for the various possibilities.