在Markdown / Macdown编辑器中格式化MySQL代码

我试图找出哪些是用Markdown/Macdown编辑器渲染一些MySQL查询的最聪明的方法.

我试图在查询代码片段之前使用~~~ sql标记应用4个空格,但它似乎不能正常工作,因为它没有显示代码亮点.

请参见下面的截图:

enter image description here

有什么建议?
谢谢你的建议.

解决方法:

I have tried to apply [four] spaces with ~~~sql markup before the … code snippet

您必须在缩进的代码块和受防护的代码块之间进行选择.替代语法的部分混合将不起作用.

# Code Block #

What follows is a fenced code block. 
Note that all text starts immediately in the left margin. 
There is no indentation of the fences. 
There are no extra space characters at the start of these lines.

~~~~sql
update employee
  set salary = salary * 2
  where salary < 100000
~~~~

The following will not work

    ~~~~sql
    update employee
      set salary = salary * 2
      where salary < 100000
    ~~~~

You cannot mix indentation and fencing.

语法标识符是fenced code block语法的一部分.您还必须使用波浪线结束代码块.

SQL语法高亮显示为supported language.

您还必须“勾选在代码块中启用突出显示选项”.在Macdown.

Image of Macdown Preferences dialogue

相关文章

markdown语法1、vscode预览md文件打开侧边预览按完Control+K...
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快...
这加粗样式里写自定义目录标题使用Markdown编辑器新的改变功...
Markdown基本语法标题字体分割线下划线列表列表无序列表使用...
MarkDown学习标题几级标题就加几个井号,最多支持到6级字体H...
markdown基本语法目录:文章目录markdown基本语法1.斜体和粗...