代码高亮插件

  1. SyntaxHighlighter
  2. Prism
  3. Highlight.js
  4. Rainbow
  5. SHJS
  6. Code Prettify
工具地址 例子 说明
http://sql-formatter.com/ 该网站自己写的格式转换,可以参考
https://github.com/zeroturnaround/sql-formatter/ https://zeroturnaround.github.io/sql-formatter/
https://github.com/andialbrecht/sqlparse https://sqlformat.org/ python写的;可调用其接口:https://sqlformat.org/api/
http://www.sqlinform.com/online-sql-formatter/ 一款插件的网页版
https://www.cleancss.com/sql-beautify/ 网页版
https://www.freeformatter.com/sql-formatter.html 网页版
http://www.dpriver.com/pp/sqlformat.htm Instant SQL Formatter,网页版
https://codebeautify.org/sqlformatter 网页版
http://sqlformat.darold.net/ pgFormatter
  • github 上待做demo的项目:
github地址 是否已做例子
https://github.com/syntaxhighlighter/syntaxhighlighter 已做,待细化
https://github.com/google/code-prettify 未做
https://github.com/gajus/pg-formatter 已做;但好像需要node支持;已提issue,待答复;封装的https://github.com/darold/pgFormatter,例子:http://sqlformat.darold.net/
https://github.com/mysqljs/sqlstring 已做;没有web界面,只是js处理sql语句(转化参数等)
原文地址:https://www.cnblogs.com/cag2050/p/7976995.html