Categories
JavaScript

Google Code Prettify

I have played with various WordPress plugins for code syntax highlighting, but recently helped answer a query with regards syntax highlighting in other projects using Google Code Prettify. If you store your code samples in a MySQL database, the trick is to store them as html entities. In other words, the following PHP code: <?php //comment […]