Skip to content

Instantly share code, notes, and snippets.

View eleclerc's full-sized avatar

Eric Leclerc eleclerc

View GitHub Profile
@eleclerc
eleclerc / PHP_Markdown_Extra+GeSHi.patch
Created May 17, 2009 12:56
patch for PHP Markdown Extra 1.2.4 to use GeSHi to add syntax coloring to code block. first line of your codeblock need to be the language id line: ie: #!php (github and posterous' way)
--- markdown.php 2009-10-10 10:11:04.000000000 -0400
+++ markdown-geshi.php 2010-06-16 16:54:51.000000000 -0400
@@ -2,6 +2,11 @@
#
# Markdown Extra - A text-to-HTML conversion tool for web writers
#
+# GeSHI addition by Eric Leclerc
+# uses GeSHI 1.0.8.8. add a shebang line as the first line of your
+# code block to trigger GeSHI parsing/highlighting, ie:
+# #!php