1.0 This is a test 1.0 This is another test 10.0 for($i=0; $i<100; $i++; ) {100.0 $a="hello";1000.010000.0 1000.0 100.0

Odd... The PHP blocks get the formatting right, except for the first line, though the PHP syntax coding might bother you. Then again, maybe it won't be that big of a deal for what you are posting.

You might give that a try. I think it will be easy to remove the PHP colors. I'll see if anything can be done to help out the standard code blocks as well. It will be a few days before I can do anything significant. Holiday visits to relatives and ice storms, power outages and staying in homes of strangers has put me well-behind on everything.

Quote:This example shows how you can get a table rendered via bbcode using the [table], [tr], [td] and [th] tags.

This doesn't appear to work:

I don't know about My⁣BB, but in the forum I maintain these BBCodes are not part of the standard repertoire but need to be implemented as Custom BBCodes by the site admin. It's straight forward for IPB. I guess, the MyBB software provides a similar facility.

In my experience, however, only advanced members manage to use them correctly. The outcome might be different in a forum about calculators, though. ;-)

While I probably could add HTML-like tables like Thomas suggested, I was a little leery of doing this since people seem to mess up with them a lot. I also prefer not to mess with the base code too much since things may have to be reintegrated into future updates. And I thought that people were happy with the latex way of doing it. But if there are problems with the latex solution, I could look into this again.

(03-21-2015 05:27 PM)Dave Hicks Wrote: But if there are problems with the latex solution, I could look into this again.

Hm, while I understand that LaTeX is nice to have in a calculator and math related forum, as a maintainer I would be seriously worried about depending on any external resources and using services not hosted locally on the own server - in our forum I maintain a strict anti-cross-site-scripting policy and independance from any client-side scripting for security/privacy reasons. After all, why should a third-party like mathjax.org be able to track visitors of this forum and collect data about them?

Doesn't MyBB provide menus to define Custom BBCodes from the admin console? While this would not be as flexible as what would be possible with PHP, at least in IPB it's powerful enough for tables, and defined this way, they should survive software upgrades as well.