Skip to content

Instantly share code, notes, and snippets.

@ThijsFeryn
Created July 2, 2012 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThijsFeryn/3034005 to your computer and use it in GitHub Desktop.
Save ThijsFeryn/3034005 to your computer and use it in GitHub Desktop.
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