Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Heading “rel” for a code. Use Prettify WordPress plugin Re: Heading “rel” for a code. Use Prettify WordPress plugin

#93629
Chris Coyier
Keymaster

It’s a pseudo-element that pulls the value like

pre:before { content: attr(rel); }

or whatever. Not the most semantic but I like the result. Ideally, you’d use like data-codelang attribute.