michelf/php-markdown — pull request #30 by alexrussell (2012-05-11 08:54:51+00:00)
Title: Added ability for fenced code block to allow a language to be defined.

After the "~~~" of the start of the block, the language can come straight away or after some whitespace and then can have any whitespace after it before the newline that ends the fence marker line.

The language itself can be alphanumeric with '_' and '-', and the generated code is either the normal code for the code block pre>code>{content} if no language is present, or pre.prettyprint>code.lang-{lang}>{content} if a
language is specified. This fits in nicely with Google Prettify but also nice HTML5 standards, too.

Feel free to discard the 'coding standards' commit. My text editor trims whitespace so I figured I'd do it as a separate commit in case you wanted to ignore it.