[ 4 posts ]

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile
Tags:

Github Gist and Pasting Code

Post Posted: Thu Jan 22, 2009 9:18 pm
+0-
I added a new BBCode tag to aid in sharing code on the forums.

You can visit GitHub's Gist site and paste in your code.

When you "Paste" the code, it will save it with a unique id. Something like "gist: 50866"

Now you can enter it like this:
Code:
[gist=50886]My Example[/gist]


Note the title of the gist can only contain: Characters from the latin alphabet (A-Z), numbers, spaces, commas, dots, minus, plus, hyphen and underscore

And get this:

My Example

Click here to see the revision history on this Gist.

Jim Simpson

  • Username: jamrsim
  • Joined: Tue Nov 03, 2009 8:14 am
  • Posts: 33
  • Offline
  • Profile
Tags:

Re: Github Gist and Pasting Code

Post Posted: Wed May 11, 2011 6:02 am
+0-
Is there a way to do something similar with pastie? They offer the embedded link ... but I don't think that would work for security reasons ...

<script src='http://pastie.org/1882576.js'></script>

maybe ...

[pastie=1882576]Program 1[/pastie]

Just a thought.

Dav Glass

  • Username: davglass
  • Joined: Thu Aug 28, 2008 9:28 am
  • Posts: 2088
  • Location: Marion, IL, US
  • Twitter: davglass
  • GitHub: davglass
  • Gists: davglass
  • IRC: davglass
  • Offline
  • Profile

Re: Github Gist and Pasting Code

Post Posted: Wed May 11, 2011 6:09 am
+0-
I didn't choose pastie support because I actually know the crew over at GitHub and I know how they serve their content ;)

Jim Simpson

  • Username: jamrsim
  • Joined: Tue Nov 03, 2009 8:14 am
  • Posts: 33
  • Offline
  • Profile
Tags:

Re: Github Gist and Pasting Code

Post Posted: Wed May 11, 2011 6:31 am
+0-
SLICK! I wasn't familiar with GIST, but I like it better now, having tried it. This worked great! Thanks!!

http://yuilibrary.com/forum/viewtopic.php?f=89&t=7796&p=24882#p24882
  [ 4 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum