Enable Markdown Syntax Highlighting in Fenced Code Blocks
I use Vim for presenting technical talks in markdown. But code blocks in markdown don’t get syntax highlighting in Vim. Let’s change that! Set this: :let g:markdown_fenced_languages = ['typescript'] Now, when I create a TypeScript fenced code block (three backticks + typescript), the type-safe code inside get highlighted, right inside my markdown. See help syntax for more.