DEV Community

loading...

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

Collapse
toonarmycaptain profile image
toonarmycaptain

Am I mistaken or is this rather similar to how it works in StackOverflow?

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.