How to highlight the source code in our php application?

Hi friends, In our php application some times we want to highlight the source code to user friendly , so the following function helped you to highlight the source code. 12345678910111213<?php if (!empty($_POST[’text’])){ echo ‘<div style="border: solid 1px red; width:300px;height: 150px; padding: 20px; margin: 20px">’; highlight_string(stripslashes($_POST[’text’])); echo ‘</div>’; } ?> Read more…