Format MySQL code in Markdown/Macdown editors

Viewed 20232

I'm trying to find out which is the smartest way for render some pieces of MySQL queries with Markdown/Macdown editors.

I have tried to apply 4 spaces with ˜˜˜sql markup before the query code snippet but it seems not working well because it doesn't show code highlights.

See the screenshot below:

enter image description here

Any suggestions? Thanks in advice.

2 Answers

I noticed that the highlighting did not work on a Jupyter notebook. By switching to ~~~ mysql it does work (rather than using ~~~ sql).

Related