Hello,
I want to execute or display a code regarding user selection. Execution is not a problem 🙂 but how can I display a syntax colored php code on a html page?
Thanks!
Run the below code and you should get an idea what you need to do.
<?php $showPHP="<?php echo 'This is fake PHP Code'; //more fake stuff ?>"; echo htmlspecialchars(highlight_string($showPHP)); ?>