3 ms·
I use gist.github.com for this. Advantages: * Always editable in a clean text-area. * Version controlled. * Language detection and syntax highlighting.
by maryrosecook 17y ago
I use gist.github.com for this. Advantages:
* Always editable in a clean text-area.
* Version controlled.
* Language detection and syntax highlighting.
- alexkay 17y agoGitHub's gists can indeed be embedded to blog posts, but only using an external js script. This won't work with blog hosting providers that don't allow JavaScript (for example wordpress.com). Also, this method won't work too well when the post is viewed in an rss reader.
- sant0sk1 17y agoAgreed. I have waffled back & forth on embedding gists in my blog posts because they don't show up in RSS readers. Also, if you have a long blog post with multiple snippets of code you have to create a new gist for each one. It'd be nice if each 'file' in a gist could be embedded separately.