Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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} ‘’’



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: