Welcome to WebmasterWorld Guest from 174.129.151.95

Forum Moderators: open

Message Too Old, No Replies

Colour Code MySQL Statements

   
1:05 pm on Jan 7, 2011 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



I would like to colour code MySQL statements for displaying on a webpage, I think using colours helps with looking at the syntax.

Does anyone know of a tool that does this? PHP has something similar with the PHP -s flag that outputs code with coloured <font> tags.
3:23 pm on Jan 7, 2011 (gmt 0)

WebmasterWorld Senior Member demaestro is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I have seen quite a few tools that will format sql statements. Adding line break and indentations for readablility.

It is likely that at least one of them would offer a colour option.

They usually come under the name SQL tidy or similar.
3:26 pm on Jan 7, 2011 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Excellent, I see an online tool that'll do the job for me. Thanks.