Reputation: 1603
Is there a library or source code that's GPL that can turn a SQL statement 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.
Upvotes: 0
Views: 159
Reputation: 26902
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.
Upvotes: 1
Reputation: 171589
Try SyntaxHighlighter.
That link is not working for me at the moment. Older version here.
Upvotes: 0