[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
Sat Oct 17 06:12:34 UTC 2015
#941: Code blocks in WikiFormatting specifying PHP should always syntax-highlight
as PHP
--------------------------+--------------------
Reporter: westonruter | Owner:
Type: enhancement | Status: closed
Priority: low | Component: Trac
Resolution: maybelater | Keywords:
--------------------------+--------------------
Changes (by nacin):
* status: new => closed
* resolution: => maybelater
Comment:
This is doable in Trac 1.1, currently in development.
{{{
#!ini
[pygments-lexer]
php.startinline = true
}}}
http://trac.edgewall.org/changeset/14207
I tried to backport that, but it got messy really quickly, so we may just
need to wait, unless someone wants to take a crack at getting it to work.
My take is if you already know to do `#!php` then you will also know to do
`<?php`, so it's not like removing it will help much more PHP be rendered
properly. So I'm going to close this as "maybelater".
I bet @ocean90 could make a PHP toolbar button that spits out
`{{{\n#!php\n<?php\n\n}}}\n`.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/941#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list