blog

  • Home
  • blog
  • Considerations for styling the `pre` tag

Considerations for styling the `pre` tag

Category: Code, Link, pre

I wrote about a bunch of design things you should think about if you use the <pre> tag in your content. Things like:

  1. Do you use the <code> tag inside?
  2. Choosing a font stack
  3. To wrap or not to wrap?
  4. How you can (easily) make code blocks auto-expanding
  5. Dangers if it is headed to email
  6. Syntax highlighting
  7. Language labeling
  8. White-space control
  9. Alternatives

Direct Link to ArticlePermalink


Considerations for styling the `pre` tag is a post from CSS-Tricks

LEAVE A REPLY