SYNOPSIS

# Embed the file robertkrimen/gist-it-example/example.js
<script src="http://gist-it.appspot.com/github/robertkrimen/gist-it-example/blob/master/example.js"></script>

# Embed without a footer
<script src="http://gist-it.appspot.com/github/robertkrimen/gist-it-example/blob/master/example.js?footer=0"></script>

# Show only the first and second line
<script src="http://gist-it.appspot.com/github/robertkrimen/gist-it-example/blob/master/example.js?slice=0:1"></script>
function Xyzzy() {
    return "Nothing happens";
}
This Gist brought to you by gist-it. view raw example.js

DESCRIPTION

gist-it lets you take a file from your GitHub repository and embed it into any webpage, just like a gist

Syntax highlighting by google-code-prettify

USAGE

Specify the slice parameter to show only a particular portion of the file:

slice=1: Show from the second line on (skip the first line)
slice=0:-1 Show the first line up to and including the second-to-last line
slice=24:101 Show lines 24 through 101
slice=0 Show only the first line of the file

Use the footer parameter to control the appearance of the footer:

footer=no
footer=0
Hide the footer
footer=minimal Show the footer without this leading part: This Gist brought to you by gist-it.

SOURCE

http://github.com/robertkrimen/gist-it

AUTHOR

Robert Krimen <robertkrimen@gmail>