Google Syntax Highlighter

Because I’m going to be using this site to store bits of information that happen to be code, I’ve decided to utilize Google syntax highlighter for this functionality.  The main problem is it’s pretty complicated to use.  So this post has the information I’ll need to use it.

The usage wiki for GSH can be found here and here is an example for the HTML:

Here’s a list of supported languages and their aliases:

Language Aliases
C++ cpp, c, c++
C# c#, c-sharp, csharp
CSS css
Delphi delphi, pascal
Java java
Java Script js, jscript, javascript
PHP php
Python py, python
Ruby rb, ruby, rails, ror
Sql sql
VB vb, vb.net
XML/HTML xml, html, xhtml, xslt

Comments are closed.