When sharing codes on a website, even they are wrapped with
code tags or styled differently, it is always a challenge to read them without syntax highlighting.
There are various syntax highlighters which can format the codes & color them appropriately according to the languages used. Whether it is a HTML page or runs on PHP, Ruby, Python, ASP, there is a suitable syntax highlighter.
And, here is a collection of 11 Syntax Highlighters To Beautify Code Presentation:
GeSHi (Generic Syntax Highlighter – With PHP)
GeSHi is a powerful syntax highlighter script that supports almost every language.
It is first created for phpBB forum system but became a project itself. It requires PHP to run (there is also a hack to make it work under ASP).
SyntaxHighlighter (With JS)
SyntaxHighlighter offers ready-to-use themes an new ones can be created easily for a custom presentation.
It has support for 3rd party applications like Blogger, WordPress, Joomla & many others.