Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Syntax highlighting using the PHP command line
$ php -s test.phps
<code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">if(</span><span style="color: #0000BB">$_REQUEST</span><span style="color: #007700">[</span><span style="color: #DD0000">'a'</span><span style="color: #007700">]&nbsp;==&nbsp;</span><span style="color: #DD0000">'b'</span><span style="color: #007700">){<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">'Some&nbsp;output'</span><span style="color: #007700">;<br />}<br /></span>
</span>
</code>
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.