是否有由 HTML + css + javascript 提供支持的 sql 编辑器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4582198/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a sql editor powered by HTML + css + javascript?
提问by idiotgenius
syntax highlighting + sql code format
语法高亮 + sql 代码格式
回答by Zevan
Code Mirrorwill do the trick. It's really nice. Very easy to run any code that you enter into it using editor.getValue().
Code Mirror可以解决这个问题。这太好了。使用editor.getValue().
回答by Ben H
You could try http://www.dpriver.com/pp/sqlformat.htm
你可以试试http://www.dpriver.com/pp/sqlformat.htm
It doesn't format on the fly, but it does highlight and format your SQL when you submit the form.
它不会即时格式化,但会在您提交表单时突出显示并格式化您的 SQL。
回答by Shyam
you can try following site for online formatting
您可以尝试以下网站进行在线格式化
http://www.sqlinform.com/free_online_sw.html
http://www.sqlinform.com/free_online_sw.html
OR
或者
you can download free SSMS free plugin for offline which gives you formatting along with intelli sense support from
您可以下载免费的 SSMS 免费插件离线使用,它为您提供格式以及智能感知支持
回答by krish at
use can also you Antlr javascript framework http://www.antlr.org/
也可以使用 Antlr javascript 框架 http://www.antlr.org/

