By davidwalsh
via davidwalsh.name
Published: Jan 22 2013 / 11:06
Blog comments and forum posts are traditionally the worst place to post code, but unfortunately are the frequent hosts of code for developers like us. Many developers choose to post links to more dev-friendly environments like GitHub instead, but there's a certain disconnect that comes with posting an external resource for something that would be much more useful in an internal capacity. Using some server-side magic (PHP in this case) and regular expressions, we can utilize GitHub's Gist API to display external code within comments and forum posts as desired!
Tweet
SaveShareSend
Tags: css-html, frameworks, php, web design
Add your comment