是否有由 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-25 14:11:51  来源:igfitidea点击:

Is there a sql editor powered by HTML + css + javascript?

javascriptsql

提问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

http://sqlformat.appspot.com/

http://sqlformat.appspot.com/

OR

或者

you can download free SSMS free plugin for offline which gives you formatting along with intelli sense support from

您可以下载免费的 SSMS 免费插件离线使用,它为您提供格式以及智能感知支持

http://www.devart.com/dbforge/sql/sqlcomplete/

http://www.devart.com/dbforge/sql/sqlcomplete/

回答by krish at

use can also you Antlr javascript framework http://www.antlr.org/

也可以使用 Antlr javascript 框架 http://www.antlr.org/