Introducing Gitdown - A Markdown/Pygments Class for PHP

May 5, 2014

One of the things missing from PHP is a syntax highlighter as good as Python's Pygments. Enter Github, which renders beautiful, extended Markdown along with Pygmented code - and they expose it through a simple API! So here you have it kids - beautify your Markdown with one line:

$html = Gitdown::pretty($markdown);

Grab the files on Github.

Interested in just the CSS they use on Github? We've figured that one out, too.

← Back to Learn

Firefly Tree