Method 1: use textarea ~ codecontiner
Example:
use this code:
<textarea class="codecontainer" rows="8" cols="45" wrap="virtual">
Method 2: separate the code
Example:If you want show :
then you can write like this :
so that the <script type="text/javascript"> can be show :)