[wp-meta] [Making WordPress.org] #176: Source code should display on individual pages

Making WordPress.org noreply at wordpress.org
Sun May 11 18:12:44 UTC 2014


#176: Source code should display on individual pages
---------------------------+-------------------------------------
  Reporter:  samuelsidler  |      Owner:  Rarst
      Type:  enhancement   |     Status:  assigned
  Priority:  high          |  Component:  developer.wordpress.org
Resolution:                |   Keywords:
---------------------------+-------------------------------------
Changes (by atimmer):

 * cc: timmermansanton@… (added)


Comment:

 [https://meta.trac.wordpress.org/attachment/ticket/176/176.diff 176.diff]
 adds a naive implementation of source code displaying on individual pages.

 What should at least be added:
 * '''Syntax highlighting''', I tried to add this but the syntax-
 highlighter plugin (that is used in the handbook) doesn't have any filters
 to add the script, neither does it use wp_register_script, it is also
 impossible to modify the object because they create it in the file itself
 and don't assign it. A possible solution would be a different plugin (but
 no compat with the handbooks) or including the script ourselves on the
 correct pages (If the plugin moves the script the syntax highlighting
 breaks)
 * '''Partial showing of code''', right now the whole piece of code is
 shown. On page load you should see a short version and with a button you
 should be able to see all the text, preferably with a nice javascript
 animation.

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


More information about the wp-meta mailing list