javascript - SQL autoformatting in codeMirror - Stack Overflow

I'm trying to "beautify" sql code in codeMirror . Autoformatting in not supported in cod

I'm trying to "beautify" sql code in codeMirror .

Autoformatting in not supported in codeMirror since v2 (current version is v4)

I've tried to use the old module formatting.js with autoFormatRange function ( the previous question on StackOverflow here). It doesn't seem to work properly with SQL. It makes indentation without any linebreaks

Did anyone figure out how to get this feature working on codeMirror v4 with SQL?

I'm trying to "beautify" sql code in codeMirror .

Autoformatting in not supported in codeMirror since v2 (current version is v4)

I've tried to use the old module formatting.js with autoFormatRange function ( the previous question on StackOverflow here). It doesn't seem to work properly with SQL. It makes indentation without any linebreaks

Did anyone figure out how to get this feature working on codeMirror v4 with SQL?

Share Improve this question edited Aug 8, 2018 at 22:00 JasonMArcher 15k22 gold badges59 silver badges53 bronze badges asked May 19, 2017 at 9:34 BrunoBruno 1531 silver badge9 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

I've solved the problem using this js auto-formatter : https://github./zeroturnaround/sql-formatter

It does an excellent job at formatting SQL (demo here)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744413010a4572977.html

相关推荐

  • javascript - SQL autoformatting in codeMirror - Stack Overflow

    I'm trying to "beautify" sql code in codeMirror . Autoformatting in not supported in cod

    8天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信