开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜