DEV Community

loading...

Discussion on: Quick Tip: How to Enable Syntax Highlighting on Dev.to

Collapse
peerreynders profile image
peerreynders

The commonmark markdown spec allows for an info string after the opening code fence.

Many markdown engines enable syntax highlighting for supported languages (e.g. GitHub based on linguist) based on that info string.

So yeah, it's a markdown thing.