Skip to content

Instantly share code, notes, and snippets.

@sparkbox
Created July 19, 2011 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sparkbox/1093690 to your computer and use it in GitHub Desktop.
Save sparkbox/1093690 to your computer and use it in GitHub Desktop.
Using gist in ExpressionEngine content
addLineNumbersToGists() {
$('.gist').each( function() {
$(this).find('.line').each(function(i, e) {
$(this).prepend(
$('<div/>').css({
'float' : 'left',
'width': '30px',
'font-weight' : 'bold',
'color': '#808080'
}).text(++i)
);
});
});
}
{exp:gist:fetch id='gistId' file='fileName'}
{exp:allow_eecode}
{article_content}
{/exp:allow_eecode}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment