Howto programmatically generate pretty printed SQL from .net?
Is there a library or source code that's GPL that can turn a SQL statem开发者_StackOverflowent into beautified HTML?
I'd even settle for some PHP or Java code that I can port to .NET
Tried google, but couldn't find any free sample code.
Beautified HTML, similar to how stack overflow highlights code? I've used SyntakHighlighter a lot to beautify my code on pages. It's javascript so it might not meet your requirements if you have to execute it server-side, but it's certainly one of the more popular ways.
If you can't run client-side then you could always follow their logic for highlighting SQL.
Try SyntaxHighlighter.
That link is not working for me at the moment. Older version here.
精彩评论