How can you prettify SQL code correctly with this site?
I'm a great fan of color-coding SQL so that it looks just like it does in SSMS. I've pored through the various help texts, but it looks to me as it is not possible with this site or in Stack Overflow. If someone can come up with an answer it would be great. I'll certainly alter the Prettifier to do it.
answered Oct 12 '09 at 03:46 AM
Melvyn Harbour 1 ♦♦
The SO code allows very limited formatting control, in large part because it already highlights & colorizes code blocks, like so:
However, as you know by now, it only works right on C-style syntax (C, C++, C#, Java, etc.), because of the persuasive belief by many who code exclusively in these languages that this list "covers just about everything".
Frankly, and IMHO, this is a problem with the software product being used here, and Redgate and the other SQL sites using it should take this back to them and tell them to make it work correctly for SQL code.
answered Oct 11 '09 at 09:57 PM