Thanks cubecolour but that didn’t resolve the problem I’m afraid.
I’m not sure of exactly what you are trying to achieve.
Can you explain in more detail?
If you look at the links in post #2 these should explain. The first link is as the author wrote it in vBulletin. The scrollable boxes are created by surrounding the text with the BB tags [php][/php] The second link shows what happens when the post is copied to WordPress.
The first link only shows a forum login screen so I cannot see the example
That’s strange because they are public forums. Anyway, I’ve uploaded images of the two pages with ImageShack. I don’t seem able to preview the post so I hope they are OK.
[URL=http://imageshack.us/photo/my-images/194/apacheserverinhtml.jpg/][IMG]http://img194.imageshack.us/img194/350/apacheserverinhtml.jpg[/IMG][/URL]
[URL=http://imageshack.us/photo/my-images/687/apacheserverinwp.jpg/][IMG]http://img687.imageshack.us/img687/3291/apacheserverinwp.jpg[/IMG][/URL]
Were you able to see the difference in the two images above?
The [php][/php] shortcode isn’t a standard WordPress one. If it’s in your system now you’ll need to track down where it’s being added into your site and work from there. My guess is that you don’t have a PHP formatter set up in WordPress, where your forum software does.
There may already be a plugin that can do this. There are several codes that are tagged with ‘ BBCODE’ http://wordpress.org/extend/plugins/tags/bbcode one of those may be appropriate, but the BBCODE plugins I have seen tend to provide basic BBCODE formatting ( bold, italic etc) but not the more specialised codes like PHP
If there is no syntax highlighter or bbcode plugin that already provides what you require, you need to write or commission someone to write a custom plugin.
There’s a tutorial for creating a syntax highlighter at http://wp.tutsplus.com/tutorials/plugins/adding-a-syntax-highlighter-shortcode-using-prism-js/
This might work as a starting point – ie change the [ code ] shortcode to a [ php ] shortcode and maybe include some css rules to format the container element for the php code at a fixed height with overflow: auto to give you the code within a scrolling box
OK. Many thanks for your help.