Why not use code.shortcode rather than span.shortcode
-
Maybe it’s too late for this idea because people already added span.shortcode in their CSS (rather than just .shortcode which seems more likely), but it seems like your plugin would be an ideal use of the
<code>
HTML tag. It’sdisplay: inline;
like span, but would mean that all themes with CSS for<code>
magically have nice monospace fonts etc for .shortcode output.It was easy enough for me to edit my CSS and add
.shortcode
wherever I sawcode
, but for people using default or off-the-shelf themes it would be a huge pain to have to copy all the code CSS into their child theme/custom-css just to get the same effect (and most won’t ever do it anyway). If you used the<code>
tag it would be automatic and they’d never even need to think about it.Thanks again for the plugin!
- The topic ‘Why not use code.shortcode rather than span.shortcode’ is closed to new replies.