Skip to content

Instantly share code, notes, and snippets.

@yurivictor
Created May 10, 2013 17:01
Show Gist options
  • Save yurivictor/5555775 to your computer and use it in GitHub Desktop.
Save yurivictor/5555775 to your computer and use it in GitHub Desktop.
Prints out syntax highlighted version of code
<?php
$uri = str_replace( '%20', ' ', $_SERVER['REQUEST_URI'] );
highlight_file( $_SERVER['DOCUMENT_ROOT'] . preg_replace( '/\.phps$/', '.php', $uri ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment