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

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35875
    vadimon
    Participant

    Hello, I use plugin Prettify WordPress for WordPress. Help me please, how I can make the “rel” attribute for heading code in plugin, as it look, like at your site?

    #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.

    #93697
    vadimon
    Participant

    I have it http://screencast.com/t/2hWW1XaS, when I used the Prettify WordPress plugin. The pseudo-element have absolute positioning. I use options from ThemeKit For WordPress plugin. Tell me please, on your site you use plugin or google-code-prettify script http://code.google.com/p/google-code-prettify/?

    #94320
    vadimon
    Participant

    up…

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.