The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,737 other followers

Embedding a Gist in WordPress is easy (via: Support — WordPress.com)

Posted by jpluimers on 2014/12/08

Boy, I wish I had found out about this a long time ago.

Embedding source code in WordPress web sites has always been a pain, as the Jekyll & Hyde faces of the WordPress Visual & Text keep fighting about the content.

A few artefacts I stumbled upon on a regular base:

Not so any more: just put your code in a public gist, then put the Gist url in the code without making it an actual link.

The only drawback: for backing up (own your own content!) you now need to backup both your WordPress site as well as all your gists. For a restore if something goes wrong with Gist, you need to reinstate all the Gist links in your blogs.

Example: I embedded https://gist.github.com/jpluimers/6248572 as plain text below.

–jeroen

via: Gist — Support — WordPress.com.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: