markdown mysql高亮_在Markdown / Macdown编辑器中格式化MySQL代码

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

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

请参见下面的截图:

SxyKd.png

有什么建议?

谢谢你的建议.

解决方法:

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语法的一部分.您还必须使用波浪线结束代码块.

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

zqa5X.png

标签:mysql,markdown,editor

来源: https://codeday.me/bug/20190828/1752123.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值