Posted By

apphp-snippets on 02/18/13


Tagged

php highlight


Versions (?)

Highlight PHP Code


 / Published in: PHP
 

URL: http://www.apphp.com/index.php?snippet=php-highlight-code

This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP.

  1. <?php
  2. highlight_string('<?php phpinfo(); ?>');
  3. ?>

Report this snippet  

You need to login to post a comment.