There is a missing bbcode for coders, highlighting SQL queries… and while i have the only one in hands for vBulletin, i provide it right away…
Simply upload that product. The usage is quite simple… you use the [SQL] or [MYSQL] bbcodes to wrap your sql queries, and the result will look like this:
if you are willing to change the highlight colors, they are located in the function nex_fetch_mysql_colors() inside the product file. I do not base my colors to the ini_set hightlight colors, like most of the other guys, because these colors are horrible.
btw, this is for SQL queries, if you insert your sql queries in PHP code, use the [PHP] bbcode instead, because the highlight is working on sql queries, not code, as it is supposed to be… 🙂