[wp-meta] [Making WordPress.org] #3510: Code Block Styling

Making WordPress.org noreply at wordpress.org
Wed Jan 9 23:20:31 UTC 2019


#3510: Code Block Styling
-------------------------+---------------------
 Reporter:  Howdy_McGee  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:
Component:  Handbooks    |  Resolution:
 Keywords:               |
-------------------------+---------------------

Comment (by coffee2code):

 I've looked into styling the `<code>` tag in such a way as to improve its
 appearance as used on the page referenced in the ticket, but ultimately I
 don't think this can be safely done across the entire handbook.

 As alluded to above, `<code>` can be (and is) used inline on some handbook
 pages, so any attempt to display it as a block will result in trouble
 elsewhere.

 An example of a handbook page that has `<code>` being used in a variety of
 ways: https://make.wordpress.org/core/handbook/php-coding-standards-draft-
 proposal/

 Something that works on the page in question but is problematic elsewhere:

 {{{
 p > code:only-child {
     display: block;
     line-height: 1.75em;
     padding: 1em;
 }
 }}}

 It seems to me the page in question is actually misusing the `<code>` tag
 as the text isn't code. Wouldn't the response templates be more semantic
 as `<blockquote>`? Or at the very least `<pre>`? I'm inclined to make that
 change for this page unless there are objections.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3510#comment:4>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list