gist-embed

Lightning fast zero dependency library for embedding gists on your website

Documentation and source on Github
written by Blair Vanderhoof

Loading a gist

Loading a gist with all line numbers removed

Loading a gist with footer removed

Loading a gist with both footer and line numbers removed

Loading a gist with caption

Loading a gist with caption with footer removed

Loading a gist with multiple files

Loading a single file from a gist (example-file2.html)

Loading a single line number from a gist (line 2)

Loading a range of line numbers from a gist (line 2 through 4)

Loading a single line and a range of line numbers from a gist (line 1 and line 3 through 4)

Loading a list of line numbers from a gist (line 2, 3, 4)

Highlighting a list of line numbers from a gist (line 1, 3, 5)

Loading a private gist

Loading a code element without a gist id data attribute

This is the content of a code element. It has no gist id data attribute, so it's not parsed.