|
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.
(comments are locked)
|
|
I believe that we've managed to get the code formatting on the main SSC site working reasonably well now (albeit with maybe one or two issues still outstanding). We have a fair amount of control over this site though, so we ought to be able to substitute the javascript that causes the code to be highlighted with the one we've been using fairly successfully, including the CSS that will style it more like management studio. Yes, once things have settled down, it would be great to get this going. After all, we are a SQL site!
Oct 12 '09 at 05:33 AM
Phil Factor
Right. Now we have a new site with the friendly and competent people at OSQA to help, what about getting the colorizing stuff out of SSC into ASK?
Jun 29 '10 at 02:21 PM
Phil Factor
(comments are locked)
|
|
Phil: 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. Yes, Barry. For some reason, I find it far easier to read code if it is colorized exactly the same way as SSMS/QA. I think I've just been staring at SQL Server code for too many years. I'm hoping that the Web Team for SQL Server Central will be able to add their work to this site.
Oct 12 '09 at 05:36 AM
Phil Factor
(comments are locked)
|

