Example:
<script language='PHP'> var_dump('foo'); ?> bar <?php var_dump('herp'); </script> derp
Both var_dump() calls hsould be highlighted as PHP.
Or, in paste with language set:
Example:
<script language='PHP'> var_dump('foo'); ?> bar <?php var_dump('herp'); </script> derp
Both var_dump() calls hsould be highlighted as PHP.
Or, in paste with language set:
Doesn't seem specific to php.
See P1694 for a paste that's tagged as remarkup but doesn't seem to render or highlight.
@epriestley I can add <script language="PHP">... support to XHPAST if you'd like, but since it's removed from PHP7 and never was really mainstream I don't believe it's worth the effort.
Ah, interesting. I wasn't aware it was gone in PHP7. Given that, I agree that this probably isn't worth supporting (I've never seen this syntax in the wild myself).
I'm not completely opposed to supporting it at some point in the future if there's a stronger/more specific motivation than syntax highlighting -- likely some large codebase which is full of it and a desire to eliminate it safely by using lint/AST transformations -- but I suspect that day will never come.