[wp-meta] [Making WordPress.org] #941: Code blocks in WikiFormatting specifying PHP should always syntax-highlight as PHP
Making WordPress.org
noreply at wordpress.org
Fri Mar 6 23:30:17 UTC 2015
#941: Code blocks in WikiFormatting specifying PHP should always syntax-highlight
as PHP
------------------------+------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: new
Priority: low | Component: Trac
Keywords: |
------------------------+------------------
Take for example:
https://core.trac.wordpress.org/ticket/31550#comment:description
If you add a triple-brace code block and specify it as being `#!php` it
will not highlight the contents as PHP code unless a `<?php` appears. I
suggest that the formatting logic infer a `<?php` at the beginning of the
code block if none exists, and in this way it will get highlighted as
expected.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/941>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list