Hacker News new | ask | show | jobs
by tietjens 297 days ago
You can also create a code block in markdown and then write the language type at the top. This also creates highlighting.

‘’’go {your code} ‘’’

1 comments

Thanks for this tip.

I've seen this feature off and on in some online code editors. I didn't know this was a (universal?) Markdown feature. Is it supposed to work universally in all Markdown editors (e.g. VSCode's Markdown view)?

I know it works in Obsidian. I believe it also works in VSCode.